- 2008/05/15 Thu
-
多言語メッセージリソースメモ:Sample Message Text File (Windows)
http://msdn.microsoft.com/en-us/library/aa385769(VS.85).aspxBe aware that you must use a Unicode-compatible editor to simultaneously support the characters used in different written languages.としか書いていないけど、例によってUTF16LEで保存しろということらしい。
BOMはあってもなくても可。出力結果にも差異はなし。Message Compiler (MC_exe) (Windows)
http://msdn.microsoft.com/en-us/library/aa385638(VS.85).aspx-a
Specifies the input file is ANSI (default).-uANSI文字がデフォルトなので -u 必須。
Specifies that the input file is Unicode.自前で使用するなら、FormatMessage Function (Windows)
http://msdn.microsoft.com/en-us/library/ms679351(VS.85).aspxdwLanguageId
The language identifier for the requested message. This parameter is ignored if dwFlags includes FORMAT_MESSAGE_FROM_STRING.に MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT) とか MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US) を。