Jump to content
  • Advertisement
Sign in to follow this  
sj

Cannot load an OEM resource

This topic is 4462 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For some reason, when I call "LoadImage(NULL, MAKEINTRESOURCE(OCR_NORMAL), IMAGE_CURSOR, 0, 0, LR_DEFAULTCOLOR|LR_DEFAULTSIZE);" I get an error saying "error C2065: 'OCR_NORMAL' : undeclared identifier". I have included windows.h and I even tried to include winuser.h but I still get the error. I can't seem to figure out what's wrong so any help is appreciated. Juha

Share this post


Link to post
Share on other sites
Advertisement
Is OCR_NORMAL defined in winuser.h? And does it have any preprocessor blocks around it checking for e.g. the SDK version?

I don't have a compiler capable of building Win32 code here so I can't check...

Share this post


Link to post
Share on other sites
Ok, I got it working. I had to add OEMRESOURCE as a global project define to make it work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!