首页上一页 1 下一页尾页 1 条记录 1/1页
按C++编程宝典编的第一个程序就出搓搓,请帮助
发表在C语言图书答疑
2014-04-12
是否精华
是
否
版块置顶:
是
否
CFont font;
font.CreatePointFont(300,"宋体");
GetDlgItem(IDC_STAIC)->SetWindowText("明日科技");
GetDlgItem(IDC_STAIC)->SetFont(&Font);
//CDialog::OnOK();
错误提示
Compiling...
HellDlg.cpp
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(176) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(176) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2146: syntax error : missing ';' before identifier 'GetDlgItem'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2065: 'IDC_STAIC' : undeclared identifier
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2227: left of '->SetWindowTextA' must point to class/struct/union
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2146: syntax error : missing ';' before identifier 'GetDlgItem'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2227: left of '->SetFont' must point to class/struct/union
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2065: 'Font' : undeclared identifier
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(180) : error C2143: syntax error : missing ';' before '}'
执行 cl.exe 时出错.
HellDlg.exe - 1 error(s), 0 warning(s)
font.CreatePointFont(300,"宋体");
GetDlgItem(IDC_STAIC)->SetWindowText("明日科技");
GetDlgItem(IDC_STAIC)->SetFont(&Font);
//CDialog::OnOK();
错误提示
Compiling...
HellDlg.cpp
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(176) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(176) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2146: syntax error : missing ';' before identifier 'GetDlgItem'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2065: 'IDC_STAIC' : undeclared identifier
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2227: left of '->SetWindowTextA' must point to class/struct/union
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(177) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2146: syntax error : missing ';' before identifier 'GetDlgItem'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2227: left of '->SetFont' must point to class/struct/union
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2065: 'Font' : undeclared identifier
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2018: unknown character '0xa3'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(178) : error C2018: unknown character '0xbb'
f:\1.c++学习\1.练习编程\hell\helldlg.cpp(180) : error C2143: syntax error : missing ';' before '}'
执行 cl.exe 时出错.
HellDlg.exe - 1 error(s), 0 warning(s)