Returning objects from PythonCOM servers

Mark Hammond MarkH at ActiveState.com
Fri Apr 6 03:38:56 EDT 2001


Jesper Eskilson wrote:

> Hi!
> 
> Is there any sample code out there which shows how to create and manipulate
> an object where the object's type has been extracted from a type library?
> 
> /Jesper

I'm not exactly sure what you mean.

If you want to implement an interface described in a .tlb, 
servers\test_pycomtest is the only example (and only in the latest 
ActivePython, or win32all-138 and win32all-139)

If you want to call an external object who's interface is described in a 
type library and the object does not support IDispatch, you can not.

Mark.




More information about the Python-list mailing list