level 2
紫炫耀舞
楼主
这是写的几行程序,有变异编译结果,不知怎么更改求大神帮忙!谢谢!
void CHelloDlg::OnOK()
{
CFont font;
font.CreatePointFont(300,"宋体");
GetDlgItem(IDC_STATIC-)>SetWindowText("明日科技");
GetDlgItem(IDC_STATIC)->SetFont(&font);
CDialog::OnOK();
}
下面是编译结果
--------------------Configuration: hello - Win32 Debug--------------------
Compiling...
helloDlg.cpp
D:\Visual c++\MSDev98\MyProjects\hello\helloDlg.cpp(176) : error C2059: syntax error : ')'
执行 cl.exe 时出错.
hello.exe - 1 error(s), 0 warning(s)
2016年02月19日 07点02分
1
void CHelloDlg::OnOK()
{
CFont font;
font.CreatePointFont(300,"宋体");
GetDlgItem(IDC_STATIC-)>SetWindowText("明日科技");
GetDlgItem(IDC_STATIC)->SetFont(&font);
CDialog::OnOK();
}
下面是编译结果
--------------------Configuration: hello - Win32 Debug--------------------
Compiling...
helloDlg.cpp
D:\Visual c++\MSDev98\MyProjects\hello\helloDlg.cpp(176) : error C2059: syntax error : ')'
执行 cl.exe 时出错.
hello.exe - 1 error(s), 0 warning(s)