Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ ZIP VisualStudio2012 , +
Hi, does anyone have source code for GZIP running under windows visual studio 2010 or 2012?
Posted 12-Feb-13 12:12pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Of course, but it's C, not C++: http://www.gnu.org/software/gzip/[^], http://www.gzip.org/[^].
 
Nevertheless, you can compile this code in a C++ project. Unfortunately, there are no MSBuild project files, you have to make one by yourself.
 
However, GZIP implementation is included in boost, which is a C++ set of libraries. Please see:
http://www.boost.org/doc/libs/1_53_0/libs/iostreams/doc/home.html[^].
 
[EDIT]
 
A almost forgot! There is another open-source product which supports GZIP immediately, written in C++. This is the famous 7-zip:
http://en.wikipedia.org/wiki/7-zip#Other_supported_formats[^],
http://www.7-zip.org/[^].
 
Chances are, you can even use it as is. Of course, it can be run in console-only form. I would prefer 7-zip to anything else.
 
—SA
  Permalink  
v5
Comments
Alistair Budd at 12-Feb-13 19:13pm
   
Thanks, Are you interested in getting paid to do this for me? If so how much?
I need this written for a web server, so must be GZIP
All memory requested must use my procedure "FastMem.Alloc" , "FastMem.Free"
It must be written in Visual Studio c++ 2010 as a console app, using one class as source if possible.
The code will be inserted into the code getting developed.
Sergey Alexandrovich Kryukov at 12-Feb-13 19:39pm
   
Why? You can dig out the code from available source...
—SA
Alistair Budd at 12-Feb-13 19:43pm
   
Busy with the project at the moment, easier to pay someone to do it. My company will pay. I also need SSL Certificates for server. All in C++
Sergey Alexandrovich Kryukov at 12-Feb-13 19:49pm
   
I think you can find someone closer to you; not a rocket surgery... and this is a wrong site for hiring...
—SA
Albert Holguin at 13-Feb-13 18:03pm
   
He went from asking a question to offering you money to do it... guess he gave up rather easily...lol
Sergey Alexandrovich Kryukov at 13-Feb-13 18:07pm
   
This is just because this is not a rocket surgery, which is the most informative hint in all this discussion. :-)
—SA
Sergey Alexandrovich Kryukov at 12-Feb-13 20:11pm
   
Certificated are either self-signed or ordered from one of certificate authorities:
http://en.wikipedia.org/wiki/Certificate_authority
 
As the purpose of a server certificate is only to make sure that the users of the server can trust it (it has nothing to do with security of the service itself), and the user can check with the authority that a site is authentic, self-signed certificate is only good for people who already know that a given certificate can be trusted. For example, it can be good for people who work in your company or otherwise are familiar with your; they could receive a public key token of the certificate from you by some independent channel and use it for validation. In other words, this is the situation when you can play the role of authority by yourself.
 
There is no need for writing any software for all these purposes.
 
—SA
Alistair Budd at 12-Feb-13 19:52pm
   
Ok, thanks
Sergey Alexandrovich Kryukov at 12-Feb-13 20:12pm
   
Sure. If you agree this is the answer (yes, it is), please accept it formally (green button) — thanks.
—SA
Mohibur Rashid at 13-Feb-13 2:31am
   
You will not need any change to compile the code with visual studio 2008, not sure about 2010.
Albert Holguin at 13-Feb-13 18:02pm
   
Good answer +5
Sergey Alexandrovich Kryukov at 13-Feb-13 18:06pm
   
Thank you, Albert.
—SA

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



Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100