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#
  4. How to use Dunzip32.dll in my project?

How to use Dunzip32.dll in my project?

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiocomtutorial
5 Posts 3 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.
  • J Offline
    J Offline
    JSSUML
    wrote on last edited by
    #1

    According to Microsoft compressed folders in windows uses the following .dlls 1) Dunzip32.dll: Responsible for decompressing files stored in a compressed folder or file when they are copied, extracted, or executed. 2) Dzip32.dll: Responsible for compressing files when they are put into a compressed folder or file. I need these dlls for a Console project that directly uses them to compress and decompress .zip files. But when i try to add any of the above dll's as a reference to my project in Visual Studio 2005 i get the ERROR: Reference could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM object.:confused: Can anybody help me ???:(

    ================================ Thanks();

    A C 2 Replies Last reply
    0
    • J JSSUML

      According to Microsoft compressed folders in windows uses the following .dlls 1) Dunzip32.dll: Responsible for decompressing files stored in a compressed folder or file when they are copied, extracted, or executed. 2) Dzip32.dll: Responsible for compressing files when they are put into a compressed folder or file. I need these dlls for a Console project that directly uses them to compress and decompress .zip files. But when i try to add any of the above dll's as a reference to my project in Visual Studio 2005 i get the ERROR: Reference could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM object.:confused: Can anybody help me ???:(

      ================================ Thanks();

      A Offline
      A Offline
      Andrei Ungureanu
      wrote on last edited by
      #2

      You cannot add them as references because they are written in unmanaged code, so you need to import the methods from those libraries using the DllImport attribute. Hope it helps.

      There are 10 kinds of people: those who understand binary and those who don't

      J 1 Reply Last reply
      0
      • J JSSUML

        According to Microsoft compressed folders in windows uses the following .dlls 1) Dunzip32.dll: Responsible for decompressing files stored in a compressed folder or file when they are copied, extracted, or executed. 2) Dzip32.dll: Responsible for compressing files when they are put into a compressed folder or file. I need these dlls for a Console project that directly uses them to compress and decompress .zip files. But when i try to add any of the above dll's as a reference to my project in Visual Studio 2005 i get the ERROR: Reference could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM object.:confused: Can anybody help me ???:(

        ================================ Thanks();

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        JSSUML wrote:

        Can anybody help me ???

        Instead of trying to use these DLLs directly. Why not have a look in the System.IO.Compression[^] namespace for managed classes that do the same work.


        Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        J 1 Reply Last reply
        0
        • A Andrei Ungureanu

          You cannot add them as references because they are written in unmanaged code, so you need to import the methods from those libraries using the DllImport attribute. Hope it helps.

          There are 10 kinds of people: those who understand binary and those who don't

          J Offline
          J Offline
          JSSUML
          wrote on last edited by
          #4

          Thanks a lot. But I think by using System.IO.Compression the same functionality of Dunzip32.dll can be achieved. :)

          ================================ Wirth's law: Software gets slower faster than hardware gets faster.

          1 Reply Last reply
          0
          • C Colin Angus Mackay

            JSSUML wrote:

            Can anybody help me ???

            Instead of trying to use these DLLs directly. Why not have a look in the System.IO.Compression[^] namespace for managed classes that do the same work.


            Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

            J Offline
            J Offline
            JSSUML
            wrote on last edited by
            #5

            Thanks. that works well :)

            ================================ Wirth's law: Software gets slower faster than hardware gets faster.

            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