title: Compress array of data sent through sockets
body: <p>We have a Server that sends some data to a client(both written using c++/MFC) using sockets
  The data is getting a little too big and I'm looking for solutions to compress it.  Basically I need to compress some char Arrays</p>
  
  <p>I am not very familiar with MFC. I looked at zlib but I had a hard time getting anything compiling with my VS project. I am also able to use CLI (I tried using <a href="http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream%28v=vs.80%29.aspx" rel="nofollow">GZipStream</a> and got it to work on C# but when I tried it on c++ I can't manage to get the CLI arrays to play nicely with the c++ char arrays)</p>