| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Tue Oct 09, 2007 11:25 am Post subject: Sszip dll Help |
|
|
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 |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Oct 09, 2007 2:36 pm Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Oct 09, 2007 5:23 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Oct 09, 2007 9:39 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Oct 09, 2007 9:43 pm Post subject: |
|
|
| 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  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Oct 10, 2007 2:28 am Post subject: |
|
|
| 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  |
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 |
|
 |
|