Hi there,
Is there a way I can change a generated typelib dynamically without having
to modify the generated .py file itself? (ie. the files generated in
C:\Python25\Lib\site-packages\comtypes\gen). In particular I just want to
change the signature of one of the methods. I tried this:
import comtypes.gen.MyLib as MyLib
MyLib.Channel._methods_[3] = comtypes.COMMETHOD([], HRESULT, 'ReadPacket',
( ['in'], POINTER(c_ubyte),
'data' ),
( ['in'], c_int, 'length' ),
( ['out'], POINTER(c_int),
'actual' ))
But it seems like comtypes doesn't "see" or "register" this change.
Although if I "print MyLib.Channel._methods_[3]" I see it is changed
accordingly. Of course if I make this change in the typelib file directly
it works.
Is there a way to "re-hash" somehow?
Thanks!
Eddie
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users