我在编写例程7无模式对话框代码时,出现一行编译错误,为:
Ex07aDialog.cpp(77) : error C2589: 'constant' : illegal token on right side of '::'
Ex07aDialog.cpp(77) : error C2143: syntax error : missing ')' before '::'
Ex07aDialog.cpp(77) : error C2661: 'Create' : no overloaded function takes 0 parameters
Ex07aDialog.cpp(77) : error C2059: syntax error : ')'
Error executing cl.exe.
对应的77行为:
BOOL CEx07aDialog::Create()
{
return CDialog::Create(CEx07aDialog::IDD_DIALOG2);}
请高手指教 。
Ex07aDialog.cpp(77) : error C2589: 'constant' : illegal token on right side of '::'
Ex07aDialog.cpp(77) : error C2143: syntax error : missing ')' before '::'
Ex07aDialog.cpp(77) : error C2661: 'Create' : no overloaded function takes 0 parameters
Ex07aDialog.cpp(77) : error C2059: syntax error : ')'
Error executing cl.exe.
对应的77行为:
BOOL CEx07aDialog::Create()
{
return CDialog::Create(CEx07aDialog::IDD_DIALOG2);}
请高手指教 。
CDlg * pDlg;2.pDlg = new CDlg;然后Creat
然后show就可以了!!最后别忘了.删除内存!
dlg->Create(IDD_DIALOG2, NULL);
dlg->ShowWindow(SW_SHOW);