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.
You need to define this macro:
#define OEMRESOURCE
just before you include windows.h
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With