Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.80/5 (3 votes)
See more:
I am looking into creating a self extracting archive, I don't have any code as of right now, but my idea is simple.

Extract internal zip file to temp directory
Run setup script
Delete temp directory

Simple enough, I would like a simple c++(mingw) example of an implementation of the zLib source for decompressing all contents of a zip file.

If you are wondering why I am using the source and not the library version, since it is supposed to be sort of a setup program, it would be kind of silly to have the user download more than one file.
Posted
Comments
pasztorpisti 27-Jul-13 3:52am    
Why don't you download the zlib sources and do that overly simple task yourself? btw, zlib contains an example directory as most serious libraries do. Whether mingw or not - really doesn't matter az zlib is pretty much platform independent and compiles with all major compilers. If you are compiling for windows I would recommend using a Visual Studio Express instead of Mingw as the official windows compiler usually has more up to date system headers than its stepbrothers. Mingw has its own uses but I wouldn't use it to write apps that are windows specific from the beginnings.
Sicppy 27-Jul-13 15:50pm    
I use Code::Blocks which comes with mingw, I prefer it over visual studio, its more flexible than visual studio, although I do use visual studio often for things like c# and VB.net
pasztorpisti 27-Jul-13 16:00pm    
The only advantage of codeblocks over visual studio is that its a crossplatform ide. This is the end of the list. Visual C++ is by far the best C++ development environment especially with the VAssistX and Productivity Powertools plugin.
Sicppy 27-Jul-13 20:58pm    
No, no matter what, visual studio will give you multiple files instead of just an exe file you can distribute anywhere, which is what im looking for.
pasztorpisti 27-Jul-13 21:16pm    
The same is true to mingw.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900