Wierd Unicode problem in converted 6.0 project

  • Thread starter Thread starter Andreas Magnusson
  • Start date Start date
A

Andreas Magnusson

Well this is strange... I have some old projects in VC 6.0 form, which all
use _MBCS as "string encoding". I converted them with VS2003 and compiled
OK.
After that I decided to change _MBCS to _UNICODE (through the selection in
Project Settings [of course]). Imagine my surprise when the change didn't
"take". No UNICODE or _UNICODE declaration form the compiler. I tried to
declare them myself in the Preprocessor settings, but no change. It did not
go through.
Last chance I had was to change the original .dsp files and replace _MBCS
with _UNICODE. Now suddenly VS2003 wants to compile in Unicode. Is this a
freak accident or something known?

/Andreas
 
Well, I found the reason for the settings not getting an effect on the code;
in the vcproj file, all the cpp files had hardcoded preprocessor settings
which included _MBCS for some reason. But it doesn't seem right that the
import/conversion ignores this. Or is it?

/Andreas
 
Back
Top