[python-win32] Re: OleLoadPicture PyIStream and Resource files

Thomas Heller theller at python.net
Mon Mar 1 03:59:15 EST 2004


"Kerry Oliphant" <koliphant at qwest.net> writes:

> I am using OleLoadPicture to assign bitmaps to an ImageList control.
> However, right now I have to load each bitmap from a file and write the data
> to an PyIStream object.  I would like to be able to just get the bitmaps
> from a loaded resource DLL to write to the PyIStream object.  Does anyone
> know how to do this?

You should look into the win32api.EnumResourceTypes() and
win32api.EnumResourceNames() functions to find out about the resources
in the file, then you should be able to win32api.LoadResource() to get
the data.

Thomas




More information about the Python-win32 mailing list