出现这个对话框提醒通常由于以下两个原因:
1、编码冲突:
可能是代码冲突,通常情况下是代码中的字符冲突,如可能遇到这个提醒:warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss。
解决方法:
tools->options-> Debugging ->general去掉require source files to exactly match the original vision。
还有一个办法就是试下是不是在某个文件中提醒的,那么去掉这个文件中的中文字符或者注释。有时候可能需要把cpp文件中的东西都删掉重新加上去。
2、断点错误:
就是断点设置的地方无法进入。检查下是否设置错了地方。如下面代码
pWnd = GetDlgItem(IDC_STATIC_SCENE);
CDC* pdc = pWnd->GetDC();
CRect rect;
pWnd->GetClientRect(&rect);
当把断点设置在pWnd = GetDlgItem(IDC_STATIC_SCENE)时候就会提醒。