Advertisement

Ipicture, OleLoadPicturePath & Dev-C++

Started by May 29, 2003 04:39 PM
12 comments, last by mathguytroy 20 years, 6 months ago
I recently downloaded the NeHe Ipicture code and tried to compile it in Dev C++ ver 5 beta 8. The error that I am getting is that OleLoadPicturePath is undeclared. I searched the message boards for any information about this error and only a few people have experienced it. I didn't really get any answers though. So, I'm wondering anyone else has experience it and what solutions have there been? Thanks [edited by - mathguytroy on May 29, 2003 11:01:19 PM]
I''ve used those functions before, but in MSVC not DevC++. OlePicturePath is in olectl.h, and you have to link to vfw32.lib.
Brianmiserere nostri Domine miserere nostri
Advertisement
quote:
you have to link to vfw32.lib.


no you don''t. vfw32.lib is for the Video For Windows API.
The one you''re wanting is one of the ole libs.

about the oleloadpicturepath being undeclared. Search through your include directories for it. If its not there then you need an updated Platform SDK but I''m not sure how that works in DevC++/MingW. If you do find it check for any define guards around it.

i.e.

#if (WINVER >= 0x0400)
find / -name "your base" -exec chown -R us:us {} ;
quote: Original post by null_vector
no you don''t. vfw32.lib is for the Video For Windows API.
The one you''re wanting is one of the ole libs.


Sorry, you''re right.

Brianmiserere nostri Domine miserere nostri
Thanks for the info. I searched through olectl.h and it didn't have OleLoadPicturePath. In fact, I searched through all my include files and couldn't find the function. It seems to me that I need a new olectl.h file. I'm going to try now and install MSVC and look at its olectl.h file. I'll give an update on how this goes.

[edited by - mathguytroy on May 29, 2003 12:18:35 AM]
quote: Original post by mathguytroy
It seems to me that I need a new olectl.h file. I''m going to try now and install MSVC and look at its olectl.f file.


Mine (from MSVC 6.0) has it, as does the one that came with my MinGW (3.2.3).


Brianmiserere nostri Domine miserere nostri
Advertisement
Ok. . .after copying the olectl.h from my MSVC CD, I managed to get rid of the OleLoadPicturePath error and came up with some new ones. I managed to get rid of those by copying some more files. I''m left with one last error. A linker error to IID_Ipicture. I managed to resolve all the other linker errors by linking to the right libraries, but this one has me baffled, I have no idea which library to link to. I''ve already tried quite a few. Hmm. . .

I suggest SDL_picture ;*)
SaM3d!, a cross-platform API for 3d based on SDL and OpenGL.The trouble is that things never get better, they just stay the same, only more so. -- (Terry Pratchett, Eric)
quote: Original post by mathguytroy
A linker error to IID_Ipicture.


There are no special libs I need to link to in MSVC, but it''s probably doing stuff secretly.

I googled, and olepro32.lib and ole32.lib may be what you''re looking for. Maybe oleaut32.lib too.

Brianmiserere nostri Domine miserere nostri
Ok, I just tried linking to both ole32 and olepro32 and still got the same error. Keep in mind that I''m still trying to use Dev-C++ to compile.

Anyway, Rodzilla mentioned using SDL_picture. I''m assuming that it is part of SDL. What image types does it handle?

This topic is closed to new replies.

Advertisement