471,330 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

ctypes, windll question

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 true since while
bar is a class. Yet, I need to know how to create an instance of this
inner class so I can access its public methods.

Aug 14 '07 #1
0 939

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Srijit Kumar Bhadra | last post: by
6 posts views Thread by Srijit Kumar Bhadra | last post: by
reply views Thread by Srijit Kumar Bhadra | last post: by
6 posts views Thread by Mudcat | last post: by
5 posts views Thread by SoutoJohn | last post: by
2 posts views Thread by Tzury | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.