Re: Call C functions from Python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Call C functions from Python

From: Fredrik Lundh <fredrik@pythonware.com>
Date: Wed Oct 05 2005 - 15:04:20 CEST

Java and Swing wrote:

>I used, myApp = CDLL("C:...") ...as I saw it in one of the ctypes
> samples.
>
> Anyhow, I tried...
>
> myApp = cdll.LoadLibrary("C:\\myapp.dll")
> myApp.AddNumbers(1, 4)
>
> ..I get an error...
>
> AttributeError: function 'AddNumbers' not found
>
> ...myapp certainly has AddNumbers.

properly exported? what does

    dumpbin /exports myapp.pyd

say?

</F>
Received on Sat Oct 15 04:10:26 2005