Search code examples
pythondll32bit-64bitprinterspython-2.2

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. It might seem strange, but is this possible?


Solution

  • 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.