OleLoadPicturePath and IID_IPicture

D

Dudley

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top