ctypes load a dll without error message, but nothing happened
I tried to use windll.LoadLibrary in ctypes to import a dll file into
python. Though there wasn't any error message, none of the functions
listed in the header file seemed to be successfully loaded. I wonder if
there is anything wrong with the dll file, or I have used the
windll.LoadLibrary method incorrectly.
The dll and header files can be downloaded from the following link:
http://www.cc.ncu.edu.tw/~auda/ATC3DG.rar
The python commands I used was:
from ctypes import *
libc=windll.LoadLibrary('ATC3DG.DLL')
The results can be viewed from the following link, which shows dir(libc)
does not give me any functions or variables listed in ATC3DG.h:
http://www.cc.ncu.edu.tw/~auda/ATC3DG.jpg
I am using python 2.7.3 (32-bit), and ipython 0.13.1 on a windows 7
(64-bit) platform.
thanks,
Erik Chang
No comments:
Post a Comment