我写的一个基于对话框的程序,头文件为ClientDlg.h
程序中用到CSocket类,在CMySocket::OnReceive中要得到CClientDlg的对象的指针,当然我要包含ClientDlg.h文件,但是现在一包含这个文件,就报错:
d:\zheng\work\programm\football client\udp\client1.0\clientdlg.h(22) : error C2065: 'IDD_CLIENT_DIALOG' : undeclared identifier
d:\zheng\work\programm\football client\udp\client1.0\clientdlg.h(22) : error C2057: expected constant expression
我以前写过类似的程序,没出过这个问题.现在这个程序开始是别人写的,我中间接手的,请问高手有可能是什么问题造成的?

解决方案 »

  1.   

    VC编绎问题(能正常运行,但单步跟踪却如下提示ntdll.dll: no matching symbolic information )我的程序^+F5能正常运行,结果也正确,但F11单步跟踪执行时却如下提示:
    > Loaded 'C:\WINNT\system32\ntdll.dll', no matching symbolic information 
    > found.
    > Loaded 'C:\WINNT\system32\KERNEL32.DLL', no matching symbolic information 
    > found.
    > 并且观察不到变量,昨天也出现过此问题,但我restart电脑后就好了,后来也就能跟
    > 踪了。但现在又不行了,且restart机器后也不能正常单步了