Sign in to follow this  
sj

Cannot load an OEM resource

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
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

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