I download a .zip file from Curl
Now I need uncompress this file
what i show do
if some framework I can use In cocos2d-x
OK In the other way , I find unzip.h file in the cocos2d-x
so I read it and write the code below
void file = unzOpen64;
unzGoToFirstFile;
unzOpenCurrentFile;
charbuffer;
buffer = (char**)mallocfile)**1024);
unzReadCurrentFile(file, buffer, strlen((char**)file));
CCData**data = CCData::dataWithBytes((unsigned char )buffer, strlen);
CCImageimage = new CCImage();
image~~>initWithImageDatadata~~>bytes()));
image->saveToFile(“/Users/songtao/Library/Application Support/iPhone Simulator/5.1/Applications/2AF639B4-D8A0-4116-B19F-B6FB959956AC/Documents/2.jpg”);
xcode run and error I dont no where the error make