Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 193 %1 is not a valid Win32 application

Tags:

python

dll

I found this error [Error 193] %1 is not a valid Win32 application when i run this python command windll.LoadLibrary("C:\Windows\System32\plcommpro.dll") For this error i found my plcommpro.dll file is not executable file.But I don't know how to make it as a executable file.If someone knows please share me. Thanks and Best.

like image 672
Thazin Khaing Avatar asked Oct 20 '25 17:10

Thazin Khaing


1 Answers

If you are using a 32 bit Python and the DLL is a 64 bit DLL you will get this error, likewise if the DLL is 32 bit and your Python is 64 bit.

You can check this using the dumpbin /HEADERS <dll filepath> command from a visual studio command prompt.

like image 67
Alisdair Robertson Avatar answered Oct 22 '25 07:10

Alisdair Robertson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!