错误193%1不是有效的Win32应用程序 [英] Error 193 %1 is not a valid Win32 application

查看:1294
本文介绍了错误193%1不是有效的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现此错误[错误193]当我运行此python命令 windll.LoadLibrary( C:\Windows\System32\plcommpro.dll)时,%1不是有效的Win32应用程序
对于此错误,我发现我的plcommpro.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.

推荐答案

如果您使用的是32位Python,而DLL是64位DLL,也会出现此错误,如果DLL是32位,而您的Python是64位,则同样如此。

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.

您可以使用 dumpbin / HEADERS<检查此错误; dll文件路径> 命令从Visual Studio命令提示符进入。

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

这篇关于错误193%1不是有效的Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆