compress a file

This is a discussion on compress a file within the Windows Programming forums, part of the Platform Specific Boards category; Hi All, I need to compress a file I'm working with from a win32 application. Current I call rar (from ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    351

    compress a file

    Hi All,

    I need to compress a file I'm working with from a win32 application.

    Current I call rar (from winrar) externally using createprocess but it's flawed.

    Is there a native win32 compression package I can use to create zips?

    Is anyone aware of alternative CLI zip implementation other than winzip? I can;t use winzip because it requires user interaction.

    Thanks for any help,

    rotis23

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I have previously posted a sample of using the Info-Zip library. However, if I remember correctly, it only supports file names with pure ascii characters (no ansi or unicode). This means it is of limited value.

    Searching for "zip library unicode" brings up this article which looks like a good bet:
    CodeProject: Zip Utils - clean, elegant, simple, C++/win32

  3. #3
    </life>
    Join Date
    Oct 2004
    Posts
    83
    There are various algorithms that can be found for different types of compression, alternatively use a free console zip utility, such as Info-ZIP
    Microsoft is merely an illusion, albeit a very persistant one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21