How to use Dunzip32.dll in my project?
-
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();
-
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();
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
-
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();
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
-
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
-
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