调用MFC扩展DLL时,#include 扩展类头文件时下面这句会出错
enum { IDD = IDD_DIALOG1 };
提示:
e:\exercises\mfc\dll_t_s\tipdlg.h(21) : error C2065: 'IDD_DIALOG1' : undeclared identifier
e:\exercises\mfc\dll_t_s\tipdlg.h(21) : error C2057: expected constant expression
请问是怎么回事呢?

解决方案 »

  1.   

    IDD_DIALOG1 是在资源头文件里声明的吧, 把它移到你的头文件看看.
      

  2.   

    the dialogue ID 'IDD_DIALOG1' have changed ,you have did not replace it with the new ID.you can search the ID 'IDD_DIALOG1',then you will find it's define in the file  resource.h.you can replace the ID 'IDD_DIALOG1'with the new ID which have the same number.
      

  3.   

    在出错的文件里加上#include "resource.h"