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 


Sszip dll Help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Tue Oct 09, 2007 11:25 am    Post subject: Sszip dll Help Reply with quote

Hi guys

i'm Tryng to use sszip.dll in my app but when I add a file to a zip file any file is add to zip file the line is : SsZip Add, %%fOut, %f

where
%%fOut=C:\Backup\Bkp marted́-09-ottobre-2007-13:19.zip
%f=C:\Documents and Settings\Andrea Sperotti\Documenti\Vds\Vds Project\BackupZip\vdszip50.dll

Any idea to solve this?

many tnx in advance
Back to top
View user's profile Send private message Send e-mail
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Oct 09, 2007 2:36 pm    Post subject: Reply with quote

The : in the zip file's name could be the problem. Or maybe it's the length of the paths.

Hmm, are you trying to add to the zip file the same dll that is being used by sszip?

_________________
cheers

Dave
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Oct 09, 2007 5:23 pm    Post subject: Reply with quote

Hi Andrea,

Unfortunately there is not way for me to test all the various ways that a
file name can be created. Try using a different naming convention for the
zip file.

Also keep in mind that you CANNOT add a file to a zip if the file is currently
in use by any other program.

For reference:
Path names are limited to 260 characters.


Dave,

Looks like she's trying to add the vdszip50.dll to a zip file using my dll
(SSZip.Dll).

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Oct 09, 2007 9:39 pm    Post subject: Reply with quote

TDK,
As far as I know you cannot create a file with a : as part of a file name. On Windows File names cannot contain the following characters \ / : * ? " < > | All other characters are allowed.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Oct 09, 2007 9:43 pm    Post subject: Reply with quote

ShinobiSoft wrote:
For reference:
Path names are limited to 260 characters.


Bill,
I know that the documentation says that Path names are limited to 260 characters but it has been my experience that the limitation is only applied between the \<Path Name limited here>\ ... The full path can actually be as long as needed and the File IO functions will still work. Even the functions in the standard template library of C. You should not use a character array with a static length for file paths. You should use a pointer to the string that VDS passes your DLL and if needed get the length of that pointer to make the character array and copy the string into that character array. At least this is how I do it Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Oct 10, 2007 2:28 am    Post subject: Reply with quote

dragonsphere wrote:
ShinobiSoft wrote:
For reference:
Path names are limited to 260 characters.


Bill,
I know that the documentation says that Path names are limited to 260 characters but it has been my experience that the limitation is only applied between the \<Path Name limited here>\ ... The full path can actually be as long as needed and the File IO functions will still work. Even the functions in the standard template library of C. You should not use a character array with a static length for file paths. You should use a pointer to the string that VDS passes your DLL and if needed get the length of that pointer to make the character array and copy the string into that character array. At least this is how I do it Wink


Actually, now that I think of it, all my passed in arguments are passed via
a pointer then copied to a char array when necessary.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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