James Teh schrieb: > On 5/08/2009 5:55 AM, Thomas Heller wrote: >> So, I have now in svn implemented the following: >> - Fixed the IClassFactory::CreateInstance method >> - Implemented a Pythonic interface for it, also including >> the nice 'dynamic=False' parameter. > This is (almost) what I was looking for. Thanks! However, there is one > issue. Currently, CreateInstance always tries to return the best > interface, even if the interface was explicitly specified. In my case, I > want a specific interface, but due to the fact that the typelib is not > registered on the system, comtypes ends up returning a dispatch, which > is not what I want. I've attached a patch against svn trunk to fix this.
Sure. The patch has been applied; thanks. -- Thanks, Thomas ------------------------------------------------------------------------------ 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