Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error C2065: 'OCR_NORMAL' : undeclared identifier

I am using Visual Studio 2010 C++

How to remove this error?

error C2065: 'OCR_NORMAL' : undeclared identifier 

near

wc.hCursor =
(HCURSOR)LoadImage(NULL, MAKEINTRESOURCE(OCR_NORMAL), IMAGE_CURSOR, 0, 0, LR_SHARED)

The answer is bellow: that helped me to solve this problem.

like image 496
John Boe Avatar asked Dec 18 '25 04:12

John Boe


1 Answers

You need to define this macro:

#define OEMRESOURCE

just before you include windows.h

like image 186
John Boe Avatar answered Dec 20 '25 18:12

John Boe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!