简体   繁体   English

在Python2.2上加载64位Dll(32位)

[英]Load 64-bits Dll on Python2.2(32-bits)

I am using Python 2.2 , a 32-bit process , but I need to load a 64bit dll from a printer. 我正在使用32位进程 Python 2.2 ,但是我需要从打印机加载64位dll It might seem strange, but is this possible? 可能看起来很奇怪,但这可能吗?

In a word, no. 一言以蔽之。

ctypes using LoadLibrary is used to connect to an external DLL, but if you are a 32-bit process then you will be using 32-bit addresses, so a 64-bit binary could not be mapped against your address space. 使用LoadLibrary ctypes用于连接到外部DLL,但是如果您是32位进程,则将使用32位地址,因此无法将64位二进制文​​件映射到您的地址空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Python2.2上检查Windows是32位还是64位 - How to check if Windows is 32 or 64 bits on Python2.2 如何用 64 位替换 python 32 位而不丢失我的项目? - how to replace python 32-bits with 64-bits without losing my projects? Ctypes 问题 - 无法使用 64 位 DLL 与 32 位 DLL - OSError:异常:访问冲突读取 - Ctypes Issue - Impossible to work with 64-bits DLL versus 32-bits DLL - OSError: exception: access violation reading Python 3.5、OpenCV 3.2、Windows 7 64 位、Anaconda 3、“导入错误:DLL 加载失败” - Python 3.5, OpenCV 3.2, Windows 7 64-bits, Anaconda 3, “ImportError: DLL load failed” 确定可执行文件(或库)是 32 位还是 64 位(在 Windows 上) - Determine if an executable (or library) is 32 -or 64-bits (on Windows) 用python编程的32位整数中有多少个“1” - how many '1' in a 32-bits integer programmed with python 导入“matplotlib”时出错 - Windows Python3.7.4 32 位 - Error importing “matplotlib” - Windows Python3.7.4 32-bits 切换到python 64位后内存错误 - Memory error after switching to python 64-bits 在 64 位机器上强制 VirtualAlloc 地址小于 32 位 - Enforce VirtualAlloc address less than 32-bits on 64-bit machine Python 2.2:如何从64位数字中获取低32位? - Python 2.2: How to get the lower 32 bits out of a 64 bit number?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM