What would happen if the user’s computer has a non-English , for example French? Would the text be in French then? I’m asking this because this is the behaviour of FormatMessage, unless the dwLanguageId parameter is specified to LANG_ENGLISH instead of LANG_NEUTRAL.
Share
It depends which specific exception class is in use. There is nothing in the base
CExceptionclass that sets or formats the error message. However, some of theCException-derived classes do callFormatMessagewhen returning their error messages. For example,COleException::GetErrorMessagecallsagainst the SCODE provided in AfxThrowOleException (note LANG_NEUTRAL).