关于dlg.domodal的问题
voidCChap16Exa2View::OnTestDll(){//TODO:AddyourcommandhandlercodehereTestDlldlg_TestD...
void CChap16Exa2View::OnTestDll()
{
// TODO: Add your command handler code here
TestDll dlg_TestDll;
dlg.DoModal();
}
运行后:Compiling...
Chap16Exa2View.cpp
C:\Documents and Settings\Administrator\桌面\Chap16Exa2\Chap16Exa2View.cpp(111) : error C2065: 'dlg' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Chap16Exa2\Chap16Exa2View.cpp(111) : error C2228: left of '.DoModal' must have class/struct/union type
Generating Code...
Compiling...
怎么回事啊 展开
{
// TODO: Add your command handler code here
TestDll dlg_TestDll;
dlg.DoModal();
}
运行后:Compiling...
Chap16Exa2View.cpp
C:\Documents and Settings\Administrator\桌面\Chap16Exa2\Chap16Exa2View.cpp(111) : error C2065: 'dlg' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Chap16Exa2\Chap16Exa2View.cpp(111) : error C2228: left of '.DoModal' must have class/struct/union type
Generating Code...
Compiling...
怎么回事啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询