GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 06-Apr-2005, 14:35
toddm123 toddm123 is offline
New Member
 
Join Date: Feb 2005
Posts: 9
toddm123 is on a distinguished road

Compressing files?


Hi All,

I'm coding in a vc++.net project.

Does anyone have any info on how to compress a file so that its a true .zip file? I tried just renaming the file using code but that didn't work. D'OH!

I basically have a .txt file I output my data too and then I want to get it in .zip compressed format.

Is there a zip library somewhere maybe?

Any ideas?

Any help or info would be outstanding.

Thanks,
Todd
  #2  
Old 09-Apr-2005, 09:28
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 893
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Hi.

There's a free library here. I think it was built in C#.
You should be able to use it from Visual C++ too if you build managed code.
I didn't try it yet, but if you need help using it, please let me know and I'll try to help.

Best regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 11-Apr-2005, 08:37
toddm123 toddm123 is offline
New Member
 
Join Date: Feb 2005
Posts: 9
toddm123 is on a distinguished road
I ended up going the zlib route. It looked good but only had C or C# implementations of the library. I was working in c++.net and didn't have time (and maybe experience ) to write my own wrapper.

I luckily found this post on a c++ wrapper for the library though:

http://www.codeproject.com/cpp/unzip.asp

I worked for zipping as well as unzipping files.

Thanks a lot for your response. I don't get many responses on forums and its nice to see ppl helping out.

Thanks again,
Todd
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking source codes of image, audio and video files onauc C Programming Language 5 26-Feb-2005 21:47
converting text files to html files kensenb C Programming Language 13 09-Nov-2004 11:33
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 06:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
gxx linker accepts only 7 object files danielxs66 C++ Forum 1 12-Dec-2003 09:27

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:05.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.