Posted: Sun Mar 10, 2002 10:26 pm
Restored from previous forum. Originally posted by El_Choni.
Hi,
I'm trying to use OleLoadPicture_() to load Gif and Jpeg images in a Windows app. I've found an easy way to access IPicture methods from PureBasic, but OleLoadPicture_() will always crash. I don't even know if IPicture is an OLE or COM object, so I don't know if I should use CoInitialize_() or OleInitialize_(). To make things worse, OleLoadPicture_() is present in OLEPRO32.DLL and in OLEAUT32.DLL. Which one is called by PureBasic (being both defined in APIList.txt), and which should I use? Which libraries should I load with LoadLibrary_()?
If anyone here knows something about this issue, any help or comment would be appreciated. Bye,
El_Choni
Hi,
I'm trying to use OleLoadPicture_() to load Gif and Jpeg images in a Windows app. I've found an easy way to access IPicture methods from PureBasic, but OleLoadPicture_() will always crash. I don't even know if IPicture is an OLE or COM object, so I don't know if I should use CoInitialize_() or OleInitialize_(). To make things worse, OleLoadPicture_() is present in OLEPRO32.DLL and in OLEAUT32.DLL. Which one is called by PureBasic (being both defined in APIList.txt), and which should I use? Which libraries should I load with LoadLibrary_()?
If anyone here knows something about this issue, any help or comment would be appreciated. Bye,
El_Choni