OleLoadPicturePath and IID_IPicture

Dudley dudley.carr at gmail.com
Thu Jun 10 21:47:33 EDT 2004


I'm trying to use load a picture to be used with an ActiveX object.
The only way that I can see this being done using using
win32com.axcontrol.axcontrol.OleLoadPicturePath. The last argument for
OleLoadPicturePath requires a PyIID for specifying the interface of
the object to be returned. From the VB examples I've seen scattered
around the Internet, most people use IID_IPicture. However, it doesn't
seem that IID_IPicture is available among the predefined IIDs in
pythoncom or any of the other modules. I assume there must be some way
to instantiate and IID even if it's not predefined, but I can't find
the method that would do that.

Thanks,
D



More information about the Python-list mailing list