Hi, I'm calling zlib.dll to compress/uncompress file in my C# program.
The problem is it works very well on my 32-bit machine, but on another
64-bit machine, it throw an exception says "An attempt was made to load
a program with an incorrect format. <Exception from HRESULT:
0x8007000B>"
when uncompress() is called.
Since I have the source code of Zlib, I can build and generate both
..lib and .dll files. The generated .lib file works well in my C++
program on the 64-bit machine. But the generated .dll just keep
throwing exceptions in my C# program on the same machine.
Did I miss something? I'm really appreciate your help! 4 8293
Compile your C# program to use 32 bits, you do this in, the IDE, click in
the arrow that says Any CPU->Configuration Manager: Active Solution
Platform-<New...>
Regards,
Bela Istok
"erxuan" <er****@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hi, I'm calling zlib.dll to compress/uncompress file in my C# program.
The problem is it works very well on my 32-bit machine, but on another
64-bit machine, it throw an exception says "An attempt was made to load
a program with an incorrect format. <Exception from HRESULT:
0x8007000B>"
when uncompress() is called.
Since I have the source code of Zlib, I can build and generate both
.lib and .dll files. The generated .lib file works well in my C++
program on the 64-bit machine. But the generated .dll just keep
throwing exceptions in my C# program on the same machine.
Did I miss something? I'm really appreciate your help!
Other Question why you use zlib, if the .net framework 2.0 includes a method
to use the gzip format?
See the namespace System.IO.Compression.
Regards,
Bela Istok
"erxuan" <er****@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hi, I'm calling zlib.dll to compress/uncompress file in my C# program.
The problem is it works very well on my 32-bit machine, but on another
64-bit machine, it throw an exception says "An attempt was made to load
a program with an incorrect format. <Exception from HRESULT:
0x8007000B>"
when uncompress() is called.
Since I have the source code of Zlib, I can build and generate both
.lib and .dll files. The generated .lib file works well in my C++
program on the 64-bit machine. But the generated .dll just keep
throwing exceptions in my C# program on the same machine.
Did I miss something? I'm really appreciate your help!
Problem solved! Thank you!
I guess I have to use zlib in my case since I need to parse some files
as input which were compressed using zlib by others.
Bela Istok wrote:
Compile your C# program to use 32 bits, you do this in, the IDE, click in
the arrow that says Any CPU->Configuration Manager: Active Solution
Platform-<New...>
Regards,
As far as I know, zlib uses the Gzip standard, you can use any library that
handle that standard, give a try ;)
Regards,
Bela Istok
"erxuan" <er****@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Problem solved! Thank you!
I guess I have to use zlib in my case since I need to parse some files
as input which were compressed using zlib by others.
Bela Istok wrote:
>Compile your C# program to use 32 bits, you do this in, the IDE, click in the arrow that says Any CPU->Configuration Manager: Active Solution Platform-<New...>
Regards, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eduardo Rosa |
last post by:
Hi people,
Somebody knows where I can get a tutorial, or any help, to make "deny words"
in my forum?
thanks a lot
|
by: James Radke |
last post by:
Hello,
We are currently using a user DLL that when working in VB 6.0 has a user
defined type as a parameter.
Now we are trying to use the same DLL from a vb.net application and are
having...
|
by: Ian Rutherford |
last post by:
Heya guys,
It seems VB .net no longer supports the awesome ability of VB 6 to declare
something as a string and specify how long the string would be all in one
line:
Public myString as String *...
|
by: Michael Fuhr |
last post by:
I have a query that works in 7.3.6 but not in 7.4.2 unless I turn
off enable_hashjoin. I'm joining a table of network interfaces and
a table of networks so I can find additional info about a...
|
by: beni.cherniavsky |
last post by:
Python seems to be missing a UCS-32 codec, even in wide builds (not
that it the build should matter).
Is there some deep reason or should I just contribute a patch?
If it's just a bug, should I...
|
by: entfred |
last post by:
I have the following line of html:
 1234  abc  yow
In Internet Explorer 6.0, the columns look ok using the above html:
1234 abcd ...
|
by: edfialk |
last post by:
Hi, all I'm trying to do is load the php_mapscript.so library into php.
Here's the php file:
Code:
dl("php_mapscriot.so")
if (extension_loaded("MapScript"))
echo "works!";
else
echo...
|
by: jamesdylangoldstein |
last post by:
So I tried to do my father a favor and convert his advertisements
to .flv and place them on his website. With Flash being $600, I found
an open-source .flv player and configured it. So today he...
|
by: Ravi |
last post by:
main() {
float a = 5.375;
char *p;
int i;
p = (char*)&a;
for(i=0;i<=3;i++)
printf("%02x",(unsigned char)p);
}
the above code gives the binary representation of a.
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |