Accessing dll

Jerry Hill malaclypse2 at gmail.com
Thu Sep 6 12:58:43 EDT 2012


On Thu, Sep 6, 2012 at 12:46 PM, Helpful person <rrllff at yahoo.com> wrote:
> The reference might help if I could get Python to recognize the dll as
> a module.

That's never going to happen.  It's a DLL, not a python module.  I
think the documentation lays that out pretty explicitly.  Have you
experimented with the very first bit of example code in the
documentation?  What do you get if you do the following at the
interactive interpreter?

>>> from ctypes import *
>>> print windll.<insert your dll name here, without the .dll extension>


-- 
Jerry



More information about the Python-list mailing list