[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

hkimball

1/9/2008 1:11:00 AM

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