一个简单的随机点名的小程序FindStudent,定义了4个类,然后在其中一个类中调用CFindStudentDlg   *hWnd = ((CFindStudentDlg   *)AfxGetMainWnd());,编译的时候就显示error C2065: “CFindStudentDlg”: 未声明的标识符,
error C2065: “hWnd”: 未声明的标识符,但是在CFindStudentDlg.cpp中写入就可以通过,我查看了一下CFindStudentDlg的声明,提示我解析多义性,哪位大师能告诉我这是怎么一回事啊!!!谢谢了