I have an MFC application where the Character Set is “Not Set”. What are the risks associated with running this application on a OS that has a Multi Byte Character Set code page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The “Character Set: Not Set” option defines neither
_MBCSnor_UNICODE. That means that you’re using the *A series of functions. Those will return MBCS strings, even when_MBCSis not defined.If
_MBCSdoesn’t affect the strings returned from the *A functions, then what does it do? It maps some<tchar.h>tcs*functions to theirmbs*versions, instead of thestr*orwcs*variants. E.g. without_MBCS,_tcsrevmaps tostrrev, not_mbsrev.Therefore, you may not be able to reverse the multi-byte strings you receive from the OS, or edit them otherwise.