importing .dll in a python file

moijes12 moijes12 at gmail.com
Fri Jul 11 06:51:30 EDT 2008


On Jul 11, 2:09 pm, Tim Golden <m... at timgolden.me.uk> wrote:
> 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

Thanks a lot Tim.

moijes12



More information about the Python-list mailing list