error C2143: syntax error: missing ':' before '}’

来源:百度知道 编辑:UC知道 时间:2024/04/29 16:31:54
void CE0310Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
m_pSDlg = new CShowDlg;
m_pSDlg->Creat(IDD_DIALOG1,this);
m_pSDlg->ShowWindow(SW_SHOW);
}

编译时总是提示:error C2143: syntax error: missing ':' before ‘}’,明明就不少‘;’嘛,这到底是为什么?

这段不少
请把整个程序贴出来!

是不是类结束时,那个;少掉了?

把这段前面的代码贴出来

可能上一个函数最后忘打}了

囧囧囧,跟我一样的问题...早知道就不问了