使用线程创建对话框遇到的编译异常,高手帮忙解决

使用线程创建对话框遇到的编译错误,高手帮忙解决
//错误信息为
--------------------Configuration:   Server   -   Win32   Debug--------------------
Compiling   resources...
Compiling...
StdAfx.cpp
f:\my   documents\myprogram\tcpip\chatthread\server\liaotian.h(21)   :   error   C2065:   'IDD_DIALOG1 '   :   undeclared   identifier
f:\my   documents\myprogram\tcpip\chatthread\server\liaotian.h(21)   :   error   C2057:   expected   constant   expression
Error   executing   cl.exe.

Server.exe   -   2   error(s),   0   warning(s)

//错误行代码为
enum   {   IDD   =   IDD_DIALOG1   };

//我确定对话框名字没问题

//原始代码为
DWORD   WINAPI   Thread2(void   *a)
{
SOCKET   acc=*(SOCKET   *)a;
Cliaotian   *pDlg;
pDlg-> Create(IDD_DIALOGChat,pDlg);

return   0;
}


//出现这样的编译错误,高手请帮忙解决

------解决方案--------------------
在 stdafx.h 中加入 #include "resource.h " 试试