Error 193 %1 is not a valid Win32 application

与世无争的帅哥 提交于 2020-01-04 14:12:33

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/42477956/error-193-1-is-not-a-valid-win32-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!