出現這個對話框提醒通常由于以下兩個原因:
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)時候就會提醒。