Call C functions from Python
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 5 09:04:20 EDT 2005
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>
More information about the Python-list
mailing list