Re: CTypes, 64 bit windows, 32 bit dll
- From: rdahlstrom <roger.dahlstrom@xxxxxxxxx>
- Date: Mon, 31 Mar 2008 11:13:48 -0700 (PDT)
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?
.
- References:
- CTypes, 64 bit windows, 32 bit dll
- From: rdahlstrom
- Re: CTypes, 64 bit windows, 32 bit dll
- From: mimi.vx
- CTypes, 64 bit windows, 32 bit dll
- Prev by Date: Re: deleting a line from a file
- Next by Date: Re: [OT] troll poll
- Previous by thread: Re: CTypes, 64 bit windows, 32 bit dll
- Next by thread: Looking for indent advice howto in emacs python-mode
- Index(es):
Relevant Pages
|