ctypes
hkimball at eti-web.com
hkimball at eti-web.com
Mon Jan 7 09:51:51 EST 2008
I am trying to call a funtinon in a third party dll that spawns
another exe and I am using ctypes. Python does not complain at all
but the other process does not get spawned. It appears that I am
gaining access to the functions but with no results. Any ideas?
Thanks in advance.
>>> from ctypes import *
>>> cdecl = cdll.LoadLibrary("c:\projects\python\geinterface.dll")
>>> cdecl._GE_Connect
<_FuncPtr object at 0x00B7E378>
>>> cdecl._GE_Connect()
0
>>> cdecl._GE_IsConnected()
0
More information about the Python-list
mailing list