ctypes

hkimball at eti-web.com hkimball at eti-web.com
Tue Jan 8 20:11:18 EST 2008


I am trying to call a function in  a third party dll that spawns
an 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