Sign in to follow this  
Xiachunyi

Win32 OLE: IID_IPicture undefined

Recommended Posts

Xiachunyi    556
Hello, I am currently having trouble compiling my code with the function "OleLoadPicturePath" utilizing "IID_IPicture" without obtaining a linker error:[Linker error] undefined reference to `IID_IPicture' I have defined the header file "olectl.h" as well as the library file "liboleaut32.a". I am utilizing Dev-C++ as my development environment with GCC as my compiler. Is there something else I should include or define? Thank you.

Share this post


Link to post
Share on other sites
moeron    326
I would link to these three libs. That header should be enough.

ole32.lib
oleaut32.lib
uuid.lib

[edit]
You might just need the uuid.lib if its saying it can't find IID_IPicture and thats all its complaining about.
[/edit]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this