>hi:
>thank you first.now I use cryptlib 4.2 to decompress a file.code as below:
>aa.000.zip is the file to be decompressed.
>
>1 CFile myfile("F:\\aa.000.zip",CFile::modeRead);
>2 int length = myfile.getLength();
>3 byte * plainENC = new byte[length];
>4 myfile.Read(plainENC,length);
>5 myfile.Close();
>6 Gunzip unzipper;
>7 unzipper.Put(plainENC,length);
>8 unzipper.Close();
>
>9 long uLen = unzipper.MaxRetrieveable();
>10 byte* pUncompressed = new byte[(int)uLen];
>11 unzipper.Get(pUncompressed, uLen);
>12 printf((char*)plainENC,"%s");
>
>when the code run the line 7, there will an bug. kenerl.dll etc,
>I want to that is why ? can you give me a example .



Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

Reply via email to