ctypes windll question
Tzury
Afro.Systems at gmail.com
Tue Aug 14 05:45:04 EDT 2007
I followed the tutorial about ctypes and I still cannot figure out how
to call a method of a calss within the dll.
For example:
a dll named 'foo' contain a class named 'bar' which expose a method
named 'baz'.
if I either do:
mydll = windll.foo
mycls = mydll.bar
or
mycls = windll.foo.bar
or
mycls = windll.foo.bar()
I get an erros: "function 'bar' not found " which is right, since bar
is a class and not a function. However, I still need to create an
instance of this inner class (bar) so I can access its public method
(baz).
I cannot find anywhere instructions for that.
More information about the Python-list
mailing list