Re: CTypes, 64 bit windows, 32 bit dll



On Mar 31, 12:53 pm, "mimi.vx" <mimi...@xxxxxxxxx> wrote:
On Mar 31, 4:22 pm, rdahlstrom <roger.dahlst...@xxxxxxxxx> wrote:



So I have a 64 bit Windows 2003 system, running python 2.5.1.1.

I can import a Windows .dll (msvcrt or whatever) using ctypes, but
when attempting to import another application-specific .dll (tibrv.dll
if anyone is familiar with it), I receive the error WindowsError:
[Error 193] %1 is not a valid Win32 application.

I know there's a Windows on Windows (wow) which allows 32 bit
processes to run on 64 bit windows - is there a way to work this in
somehow? Maybe I'm barking up the wrong tree?

Code is simple, and works on 32 bit systems no

from ctypes import *
#this doesn't work
tibrv = cdll.tibrv
#this does work
msvcrt = cdll.msvcrt

all dlls and python must be 32bit or 64bit, no mixed ...

Crap, no way to make a 32 bit load, even using the wowexec?
.



Relevant Pages

  • Re: CTypes, 64 bit windows, 32 bit dll
    ... if anyone is familiar with it), I receive the error WindowsError: ... process for the 32-bit DLL and use interprocess communication. ... Shoot. ... Alright, thanks for your help. ...
    (comp.lang.python)
  • Re: CTypes, 64 bit windows, 32 bit dll
    ... rdahlstrom wrote: ... if anyone is familiar with it), I receive the error WindowsError: ... process for the 32-bit DLL and use interprocess communication. ...
    (comp.lang.python)
  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: Unable to load custom driver on WinCE 6
    ... I'm trying to make and load a simple DLL on WinCE 6 by following the ... I've made a subproject at PB project to include the simple DLL ... At the target device, the mydriver.dll file is in the Windows ... I wrote a simple application to load the driver dynamically ...
    (microsoft.public.windowsce.embedded)
  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)