未声明的标识符编译暗黑破坏神 2 程序 "muleview"

Undeclared identifier compiling diablo 2 program "muleview"

我在编译时遇到 4 个未声明的标识符错误 (Visual Studio 2013),并且不知道在哪里以及如何声明它们。

error C2065: 'IDR_MAINWND' : undeclared identifier 
error C2065: 'ID_FILE_EXIT' : undeclared identifier 
error C2065: 'ID_TOOLS_OPTIONS' : undeclared identifier 
error C2065: 'ID_HELP_ABOUT' : undeclared identifier

源文件:https://code.google.com/archive/p/mule-view/source/default/source

来源github:https://github.com/kamikazzi1/mule-view/tree/master/

Mainwnd.cpp 片段:

wcx->lpszMenuName = MAKEINTRESOURCE(IDR_MAINWND);


case WM_COMMAND:
    {
      int id = LOWORD(wParam);
      int code = HIWORD(wParam);
      switch (id)
      {
      case IDC_ITEMFILTER:
        if (code == EN_CHANGE)
          itemList->updateSelected();
        break;
      case ID_FILE_EXIT:
        PostMessage(hWnd, WM_CLOSE, 0, 0);
        break;
      case ID_TOOLS_OPTIONS:
        {
          SettingsWnd settings(this);
          settings.doModal();
        }
        break;
      case ID_HELP_ABOUT:
        {
          AboutDlg about(this);
          about.doModal();
        }
        break;
      }
    }
    break;

我发现res文件夹里还有一个resource.h,请修改mainwnd.cpp: #include "resource.h" -> #include "../res/resource.h"