forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


String to long?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Fri Feb 13, 2004 10:25 pm    Post subject: String to long? Reply with quote

Hello,

I have a little problem.

I have a long string. Its not excessive in any sence but when I try to pass it to a dos program I only recive part of it.

Example of a INFO return or a SAVEFILE command.

[first line]
WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMN
[second line]
X41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==

[it should look like]
WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMNX41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==

when I try to pass this to a dos program I only get the frist line.

I was hoping for a simple I forget to set somthing fix.

Thanks..





[/img]
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 13, 2004 10:30 pm    Post subject: Reply with quote

You have verical bars ( "|" ) in the string which is a DOS
"pipe" command. Try enclosing the whole string in quotes,
or @chr(34)s if sending it from VDS. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Fri Feb 13, 2004 11:52 pm    Post subject: Reply with quote

I've tried that and no luck. It seams to parse it after 76 characters.
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 14, 2004 12:28 am    Post subject: Reply with quote

Ah - ok, there is a command line limit of 80 chars in
DOS if I remember correctly... Sorry, don't spend much
time there anymore. Embarassed

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 14, 2004 12:37 am    Post subject: Reply with quote

You'll probably have to convert it somehow for DOS, it does have line limitations.

Maybe the below will give you clues on a get around, not sure.



@SHORTNAME(<file description>)

Description:

This function returns a DOS-compatible short filename version of the file path <file description> if it exists.

GL
Back to top
View user's profile Send private message Visit poster's website
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Sat Feb 14, 2004 12:40 am    Post subject: Reply with quote

I'm stillbaffled becouse what you save the string minus any dos interaction. hears a bit of code.

Code:

%%key = test
%%str = this is a test bla bla bla etc.
%%en = @BLOWFISH(CRYPTSTR,%%key,%%str)

LIST ADD,1,%%en
%%tt = @item(1,0)
info %%tt
LIST  SAVEFILE,1,c:\test2.txt



still returns the same thing.
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 14, 2004 1:05 am    Post subject: Reply with quote

Is it possible that some of the chars (once encrypted)
aren't VDS compatible?

Also, have ya tried saving it to a file first, then encrypting
it as a file?

Starting to run out of ideas here... Confused

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 14, 2004 1:15 am    Post subject: Reply with quote

Yeah it looks as though your trying to backup the same thing you encrypted, at the same time, is this what your trying to do?
I'm not sure what your trying to do I guess.

I gotta go, maybe tomorrow I can help.
cya
Back to top
View user's profile Send private message Visit poster's website
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Sat Feb 14, 2004 1:21 am    Post subject: Reply with quote

First I want to type a string of text, then encrypt it then send it to a different computer. But when I encrypt the string if it's a semi long string it parses it or "word wraps it" at 76 characters. I was hopeing to have one long string not 2,3,or 4 strings at 76 characters.
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 14, 2004 1:40 am    Post subject: Reply with quote

My point was that possibly the "encrypted" char at that
point is a new line char, a null, (or something else that
VDS chokes on), but I don't know. I'm not familiar with
the DLL you're using - does it mention a string length limit?

If you can encrypt a file with it, you might save the string
as plain text, then encrypt the file. Then either reload the
file and put it in a string (which still won't work if VDS can't
handle the char), or just send the file.

Just a thought. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Sat Feb 14, 2004 1:48 am    Post subject: Reply with quote

no menshion of a limit.

Thanks for you input.

I appreciate it.
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 14, 2004 1:54 am    Post subject: Reply with quote

Why not just trick it some how.

I had time for another comment, hehe

Code:

%%first_string = WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMN

%%second_string = X41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==

%%final_string = %%first_string""%%second_string



Maybe use with Input perhaps.
But I think the DOS program your using is limited to single CR lines, not 80 CR dual lines for input.
Back to top
View user's profile Send private message Visit poster's website
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Sat Feb 14, 2004 2:02 am    Post subject: Reply with quote

Thats the kind of the direction I'm going.

Thanks..
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 14, 2004 2:15 am    Post subject: Reply with quote

Don't suppose this IDE prob could be involved.... Confused

http://forum.vdsworld.com/viewtopic.php?p=16415&highlight=word+wrap+serge#16415
Serge wrote:
i have never been able to use the word wrap/line wrap as i too have code longer than the screen...i usually get an error with vds saying that the wrapped line contains an error ie. it treats the wrapped line as a fresh line of code !??!

serge


Still thinkin... Wink

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 14, 2004 2:18 am    Post subject: Reply with quote

Try throwing the below in the fire:


Code:

%%final_final_string = @ASC(%%final_string)



Maybe DOS can Read it better...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group