Begginer in python trying to load a .dll

Laurent Pointal laurent.pointal at laposte.net
Tue Aug 19 12:44:31 EDT 2014


c1234 py wrote:

> This appear in the terminal:
> 
> 
>>>> runfile('C://Python Scripts')
>   File "C:\\sitecustomize.py", line 585, in runfile
>     execfile(filename, namespace)
>   File "C://Sin título 38.py", line 19, in <module>
>     hllApi = hllApiProto (("HLLAPI", hllDll), hllApiParams)
> AttributeError: function 'HLLAPI' not found
>>>> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>

So you must find the (exact) name(s) exported by the DLL.

On Linux ther is objdump.

On Windows there is dumpbin
http://msdn.microsoft.com/en-us/library/c1h23y6c%28v=vs.100%29.aspx

On Windows, google also found this graphical tool:
http://www.dependencywalker.com/

A+

PS. If you have a C header file, it may be more easy to correctly build 
the ctype mapping (and if its not too big and filled of private 
property code, show it).




More information about the Python-list mailing list