我后来就是自己生成的程序 但是编写菜单的时候用的右键点add event handle 自动给我生成了代码void CMultiLanguagesDlg::OnTest() { // TODO: Add your command handler code here}后来我在里面添了一句话用来验证 代码为: void CMultiLanguagesDlg::OnTest() { // TODO: Add your command handler code here AfxMessageBox("ok!"); }提示错误信息为: there were build error.would you like contine and run the last successful bulid?为什么回出现这个情况啊? 求解答! 我是刚工作的新人,不太会用VC+MFC
void CMultiLanguagesDlg::OnTest() { // TODO: Add your command handler code here AfxMessageBox("ok!"); }改成void CMultiLanguagesDlg::OnTest() { // TODO: Add your command handler code here AfxMessageBox(_T("ok!")); }试试
但是编写菜单的时候用的右键点add event handle
自动给我生成了代码void CMultiLanguagesDlg::OnTest()
{
// TODO: Add your command handler code here}后来我在里面添了一句话用来验证
代码为:
void CMultiLanguagesDlg::OnTest()
{
// TODO: Add your command handler code here
AfxMessageBox("ok!");
}提示错误信息为:
there were build error.would you like contine and run the last successful bulid?为什么回出现这个情况啊? 求解答!
我是刚工作的新人,不太会用VC+MFC
void CMultiLanguagesDlg::OnTest()
{
// TODO: Add your command handler code here
AfxMessageBox("ok!");
}改成void CMultiLanguagesDlg::OnTest()
{
// TODO: Add your command handler code here
AfxMessageBox(_T("ok!"));
}试试
不过为什么要加个_T呀.
UNICODE编码方式的好处是:你的界面打开就是和操作一样的界面比如典型的XP样式的界面。
而VC6.0下默认的ANSI编码方式的代码生成的软件界面默认是灰色的,没有XP样式的,就是不好看。