Can anyone explain why I can’t use the property sheet to set the character set? Is there a list of prohibited properties that cannot be set in the prohibited property sheet?
Thank you
The project default value (character set is part of it) defines the default MSBuild property sheet to be inherited. Therefore, when you select the character set in the project, the project file will not be changed The preprocessor definitions in the project file will inherit the character set attribute table that changes these definitions. If you do not select a character set, no attribute table will be inherited.
The Unicode and MBCS attribute tables are located at:
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.MultiByteCharSupport.props
C:\Program Files\MSBuild\Microsoft .Cpp\v4.0\Microsoft.Cpp.unicodesupport.props
MBCS property sheet only adds _MBCS to the compiler’s preprocessor definition (C/C++ preprocessor definition). Unicode property sheet Only add UNICODE and _UNICODE to the compiler’s preprocessor definition (C/C++ preprocessor definition) and resource compiler definition (resource preprocessor definition). That’s it.
< /p>
I am using Visual Studio 2010 SP1. I noticed that I can add property sheets to the project, but I cannot change the character set in these property sheets. Any property sheets I create are missing the “Character Set” option .
Can anyone explain why I can’t use the property sheet to set the character set? Is there a list of prohibited properties that cannot be set in the prohibited property sheet?
Thank you
Okay, I searched on the hard drive and found the answer.
The project default value (character set is part of it) defines the default MSBuild property sheet to be inherited. Therefore, when you select the character set in the project, the preprocessor definition in the project file will not be changed, but the project file will Inherit and change the character set attribute table of these definitions. If you do not select a character set, no attribute table will be inherited.
The attribute table of Unicode and MBCS is located at:
< pre>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.MultiByteCharSupport.props
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.unicodesupport .props
The MBCS attribute table only adds _MBCS to the compiler’s preprocessor definition (C/C++ preprocessor definition). The Unicode attribute table only adds UNICODE and _UNICODE to the compiler’s preprocessor definition. Processor definition (C/C++ preprocessor definition) and resource compiler definition (resource preprocessor definition). That’s it.