[python-win32] how to generate an IPersistStream object?

Mark Hammond mhammond at skippinet.com.au
Mon Jan 29 22:05:58 CET 2007


> i need to pass an IPersistStream object to a COM function,
> and i find a type named PyIPersistStream in the manual of pywin32.
>
> but i don't know how to generate a PyIPersistStream object and pass it
> to the function.
> anyone could help me?

Gabriel is completely correct - see ./win32com/demos/ietoolbar.py and
./win32com/test/testStreams.py for 2 samples that use this interface.

Mark



More information about the Python-win32 mailing list