makepy not war

Gordon McMillan gmcm at hypernet.com
Wed Jun 9 00:48:00 EDT 1999


Flbill Blipf writes:
 
> After running makepy.py on a type library, how do I use
> the resulting file?
> 
> I know how to use win32com.client.Dispatch, and I kinda
> sort of know how to use CoCreateInstance, QueryInterface,
> etc. with C++.

You use win32com.client.Dispatch. If he finds you've been bad and 
haven't run makepy, he'll use win32com.client.dynamic.Dispatch. 
Otherwise he'll use the makepy generated stuff. Either way, you 
should never have to CoCreateInstance again.

unless-you-really-want-to-ly y'rs

- Gordon




More information about the Python-list mailing list