Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. compression/Zip problem

compression/Zip problem

Scheduled Pinned Locked Moved C / C++ / MFC
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chandrakar ashish
    wrote on last edited by
    #1

    i want to compress some image file created in my project and store it. for future use and whenever its needed unzipped the stored file. please any one let me know how i will do that and is it microsoft MFC has provide any API for that. Thanks in advance.. :)

    H R D 3 Replies Last reply
    0
    • C chandrakar ashish

      i want to compress some image file created in my project and store it. for future use and whenever its needed unzipped the stored file. please any one let me know how i will do that and is it microsoft MFC has provide any API for that. Thanks in advance.. :)

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See Zip and Unzip in the MFC way. Free source code and ...[^]

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      C 1 Reply Last reply
      0
      • C chandrakar ashish

        i want to compress some image file created in my project and store it. for future use and whenever its needed unzipped the stored file. please any one let me know how i will do that and is it microsoft MFC has provide any API for that. Thanks in advance.. :)

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        The only thing that I can think of, from Microsoft, on these lines is the CAB SDK[^]. But I see you are wanting to compress image files, so I do not know what good can cab compression do for you. There is no standard way of creating a zip compressed file using MFC or Windows API. I believe the .NET framework has this feature though. There is also the LZMA SDK[^] which can compress to .7z format, if you'd like it. The compression would be better than zip (and even rar) and the library works like a charm. Almost all compression utilities can extract from .7z files, so you don't have to possibly worry on the compatibility front too.

        It is a crappy thing, but it's life -^ Carlo Pallini

        1 Reply Last reply
        0
        • C chandrakar ashish

          i want to compress some image file created in my project and store it. for future use and whenever its needed unzipped the stored file. please any one let me know how i will do that and is it microsoft MFC has provide any API for that. Thanks in advance.. :)

          D Offline
          D Offline
          Divyang Mithaiwala
          wrote on last edited by
          #4

          Hi Ashish, Here you find good library for ZIP/UnZIP uitility. It is just .cpp & .h files for ZIP & UnZIP utility. This library is used in any c++ compiler (g++ linux, VC++ eVC++).


          Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer

          1 Reply Last reply
          0
          • H Hamid Taebi

            See Zip and Unzip in the MFC way. Free source code and ...[^]

            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

            C Offline
            C Offline
            chandrakar ashish
            wrote on last edited by
            #5

            Thank You, Hamid That is exactly I am looking for. Thanks again for your valuable and quick response Regards, Ashish :-O :thumbsup:

            R 1 Reply Last reply
            0
            • C chandrakar ashish

              Thank You, Hamid That is exactly I am looking for. Thanks again for your valuable and quick response Regards, Ashish :-O :thumbsup:

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              Plug: You can please, click the "Good Answer" link on his reply to you.

              It is a crappy thing, but it's life -^ Carlo Pallini

              C 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Plug: You can please, click the "Good Answer" link on his reply to you.

                It is a crappy thing, but it's life -^ Carlo Pallini

                C Offline
                C Offline
                chandrakar ashish
                wrote on last edited by
                #7

                Ok, i clicked on the link Thanks for remind me

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups