Home > Back-end >  VS2010 USES zlib library
VS2010 USES zlib library

Time:09-18

Library use is zlibwapi. DLL
In the compressed file TXT file decompression, properly the TXT other error to be unable to extract the following
OpenCurrentFile ErrorOpenCurrentFile ErrorOfficeTest. Exe of 0 x1000faff place the most possible exceptions: 0 xc0000005: access conflict while reading position 0 xbab2eeed

The key code
 
CFile tmpFile (strFilePath CFile: : modeCreate | CFile: : modeWrite);
Int fileLength=zFileInfo. Uncompressed_size;
Char * fileData=https://bbs.csdn.net/topics/new char [fileLength];
Int nLen=1;
While (nLen)
{
NLen=unzReadCurrentFile (zFile (voidp fileData), the fileLength);
TmpFile. Write (voidp fileData, nLen);
}

CodePudding user response:

With zlib's own test program cannot extract... What the devil
  • Related