importing .dll in a python file

M

moijes12

Hi

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!
 
T

Tim Golden

moijes12 said:
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
 
M

moijes12

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top