[Tutor] How do I use calldll and windll?
spi
bleh99@hotmail.com
Thu, 29 Mar 2001 09:20:15 -0500
no other versions are there, currently they are located at
D:\python20\lib\calldll\
D:\python20\lib\dynwin\
This is a cut from windll.py
class module:
callable_function_class = callable_function
def __init__ (self, name, ext='.dll'):
----------------------------------------------------
It's there but keeps saying that it's not there
if it makes any diffrence i'm using activestates
interactive compiler to test this
----- Original Message -----
From: "Daniel Yoo" <dyoo@hkn.eecs.berkeley.edu>
To: "spi" <bleh99@hotmail.com>
Cc: <tutor@python.org>
Sent: Thursday, March 29, 2001 4:32 AM
Subject: Re: [Tutor] How do I use calldll and windll?
> On Wed, 28 Mar 2001, spi wrote:
>
> > I downloaded and installed calldll and dynwin and am able to import
> > successfully
> > but when I try to use an example I get this error:
> >
> > >>> import windll
> > >>> kernel32 = windll.module('kernel32')
> > Traceback (innermost last):
> > File "<interactive input>", line 1, in ?
> > AttributeError: module
> > >>>
>
> I couldn't find the module class within the calldll stuff. However, I did
> see it within dynwin:
>
> ### within DynWin's windll module:
> class module:
> callable_function_class = callable_function
> def __init__ (self, name, ext='.dll'):
> self.name = name
> self.handle = calldll.load_library (name+ext)
> ...
> ###
>
> So there should be a "module" defined inside it. Could you double check
> to see that there isn't another version of windll.py somewhere on your
> system?
>
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor