I am using MinGW special 20020817-1 and attempted to use the following line in my application...
hResult = OleLoadPicture(ps, dwSize, FALSE, IID_IPicture, (LPVOID *)&pPicture); /* the rest in works fine */
This is the only line causing problems so far.
IID_IPicture does not appear to be defined in any of the libraries.
I get the following [Link] Error 1
C:/image.o(.text+0x12d):image.cpp: undefined reference to `IID_IPicture'
in olectl.h the identifier of the interface IID_IPicture is... "EXTERN_C const IID IID_IPicture;"
Where would IID_IPicture be defined? I experimented by linking each ole related library one at a time but that didn't work.
I used the picture loading code from Microsofts website before with visual C++ and had no problems.
The entire load picture example can be found here:
http://support.microsoft.com/default...;en-us;Q218972
It may have moved.
Can anyone explain why this is not working in MinGW?
Thank you