importing .dll in a python file
Tim Golden
mail at timgolden.me.uk
Fri Jul 11 05:09:50 EDT 2008
moijes12 wrote:
> I need to use a .dll from a python script.I have installed pywin.But
> in the program ,which is like:
>
> import dllName
>
> I get :
>
> Import Error : DLL not found
>
> Please suggest a solution!
Well, the short answer is: use the ctypes module.
The longer answer is: read around the subject a
bit before you expect Python to import an arbitrary
DLL and then give up when it doesn't :)
TJG
More information about the Python-list
mailing list