I am not getting very far with the ActiveX Zip component using VB6. I have developed a lot of code around these components and really like the ease of programming they make for me. But this one area seems to be non-functional. My goal is to Download a file to the PC from a Internet server (which works just fine). Then ask the User if they want to extract one of the files, renaming it just before unzipping it. As soon as the OpenZip Method is called on the downloaded file, the error occurs (Did not find central file header signature.) which makes no sense to me. The file being downloaded was created with the Zip component and uploaded to the server. I am running Windows 7, .Net 4, VB6 SP6, WinRar, with Chilkat Mail (purchased), Zip and FTP2 (evaluating for purchase). Can anyone tell me if I have it wrong or this piece just doesn't work properly???? UPDATE: I just figured out this isn't the issue, it's the creation of the zip. If I build it without Chilkat it works fine????
'Download Zip File Set ftp = New ChilkatFtp2
ChilkatLog: OpenZip: DllDate: Dec 19 2013 ChilkatVersion: 188.8.131.52 UnlockPrefix: Anything for 30-day trial Username: LUZLAPTOP:Luz Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 zipPath: C:LusbyDataVB6RVPark3001J9e5E8d9.zip oemCodePage: 437 openFromMemData: numCentralDirEntries: 6 szCentralDir: 341 posCentralDir: 1127169 Did not find central file header signature. index: 0 filePos: 1127169 --openFromMemData Failed. --OpenZip --ChilkatLog
I found (after many hours) that, when I updated my purchased WinRAR instance, everything started working correctly. When I used WinRAR (the old version) and Zipped several files and then opened it with WinRAR, the top line said the file name and then "ZIP archive", but when I used Chilkat to zip the files under the older version of WinRAR on my PC, the line said "SFX archive" (Version 5.00 vs 5.01) It isn't clear how Chilkat's DLLs are affected by another application, but at least I am working correctly. I am a little cautious about buying and implementing into my software when a client may get errors if they have WinRAR 5.00 ...
answered Mar 16 '14 at 17:27