新建MFC DLL工程,添加对话框,MFC规则DLL接口函数 global.cpp
#include "StdAfx.h"
#include "DllDialog.h"
extern "C" __declspec(dllexport) void ShowDlg(void) {
CDllDialog dllDialog;
dllDialog.DoModal();
}编译时出现下面的错误
error C2065: 'IDD_DLL_DIALOG' : undeclared identifier
error C2057: expected constant expression
我定义的窗体类,窗体ID: IDD_DLL_DIALOG为什么?正在学写DLL,很菜的,不知道是怎样一个过程。