Page 1 of 1

debug with changed source file

Posted: Sun Jan 27, 2008 9:51 am
by morya
When I am using a wxString object;

Code: Select all

wxString s;
s = "abc";
Then, I debuged to this line, the visual studio told me,
The source file is different with the one when the lib was made. Do you still want debug with this source file?
I don't think I have made any change to the source file %WXWIN%\src\common\string.cpp
What is going on with it?

Posted: Mon Jan 28, 2008 9:12 am
by morya
I found a solution,
I recompiled the source files, but the problem is still there.
When I check the compile logs, I found that the visual studio prompt that "The file string.cpp has some characters can not be read in code page 936, you should store it in UTF-8 format." something the same meaning.
I thought maybe the visual studio resaved the file automatically.
So I resaved it manually in cp936 code page.
And recompiled it.
The problem gone!