【问题标题】:error C2065: 'OCR_NORMAL' : undeclared identifier错误 C2065:“OCR_NORMAL”:未声明的标识符
【发布时间】:2015-09-09 12:27:12
【问题描述】:

我正在使用 Visual Studio 2010 C++

如何消除这个错误?

error C2065: 'OCR_NORMAL' : undeclared identifier 

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

答案如下:帮助我解决了这个问题。

【问题讨论】:

    标签: c++ undeclared-identifier


    【解决方案1】:

    你需要定义这个宏:

    #define OEMRESOURCE
    

    就在你包含 windows.h 之前

    【讨论】:

      猜你喜欢
      • 2011-02-15
      • 2011-04-16
      • 2011-04-16
      • 2010-12-24
      • 2023-03-04
      • 2011-03-02
      • 2011-12-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多