Change zip.cpp and unzip.cpp, add #include "stdafx.h" // ZipFileTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "zip.h" #include "unzip.h" int _tmain(int argc, _TCHAR* argv[]) { HZIP hz = CreateZip(_T("simple1.zip"),0); ZipAdd(hz,_T("zntext1.txt"), _T("text1.txt")); CloseZip(hz); HZIP hzo = OpenZip(_T("simple1.zip"), NULL); ZIPENTRY ze; GetZipItem(hzo, -1, &ze); return 0; } 参考: http://www.codeproject.com/KB/files/zip_utils.aspx