Visual C++ MFC,CDocument::SetTitle invalid
-
I have a MFC SDI project(use multiple byte) created in VC++ 2003. Now I convert it to VC+2008. I add the SetTitle("aaa.bbb") in OpenFile function, but the title does not change. I create a new MFC SDI project and SetTitle("aaa.bbb") in openFile function, and then the title change to be "aaa.bbb".
-
I have a MFC SDI project(use multiple byte) created in VC++ 2003. Now I convert it to VC+2008. I add the SetTitle("aaa.bbb") in OpenFile function, but the title does not change. I create a new MFC SDI project and SetTitle("aaa.bbb") in openFile function, and then the title change to be "aaa.bbb".
Are you using a 'multibytechar' set or 'unicode' in the converted code.This problem mainly arises due to the inappropiate settings.In Visual Studio go to project->properties->Configuration properties->General-> Character Set and set the value accordingly. Kushagra, I hate coding but I love to develop :)