This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to use libwireshark.dll (X64) in 64-bit windows project

0

Hello all: When i use "LoadLibrary("libwireshark.dll") in vs2010, loadlibrary failed with error 193, that is : "1% is not a valid Win32 program". My project is in X64 mode, and libwireshark.dll is built in X64 too. Why?

asked 24 Mar '13, 18:33

sunnymato's gravatar image

sunnymato
1111
accept rate: 0%


One Answer:

0

What OS are you trying to run this on? Your build may default to a target OS such as Win 7, and then the dll is not valid for earlier versions of Windows.

Use dumpbin /headers on the dll to see the target version (shown as "subsystem version" in dumpbin output).

answered 25 Mar '13, 06:45

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks. The problem has been solved.

(01 Apr '13, 07:33) sunnymato
1

Can you tell everyone else how it was resolved, in case someone else runs into the issue?

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(01 Apr '13, 07:40) grahamb ♦