If you had a look on my first reply, then you see the answer. It has to
be a tuple of values:
cc.GetModule( ('{BC26FBAC-00E1-11D4-B5D0-00600831E1F3}', 2, 0) )
Von: takeshi ikeya [mailto:takeshi.ik...@gmail.com]
Gesendet: Freitag, 20. April 2012 00:22
An: comtypes-users@lists.sourceforge.net
Betreff: Re: [comtypes-users] How to create an instance of Interface of
a COM.
As a fact, I was thinking in my bed, and fond that I didn't specify the
Interface.
So this morning, I dashed to my PC.
And there was a mail from you.
Thanks
All goes well.
Leaving a little question
cc.GetModule('IntegMotorInterface.dll')
works well.
cc.GetModule('{BC26FBAC-00E1-11D4-B5D0-00600831E1F3}', 2, 0)
as you say, I place a quotation, but
end up with error
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
cc.GetModule('{BC26FBAC-00E1-11D4-B5D0-00600831E1F3}', 2, 0)
TypeError: GetModule() takes exactly 1 argument (3 given)
So I deleted last 2 argments (,2 ,0).
More error messages.
Why ?
Regards
ikeya
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users