Compiling MC file in Unicode format
From: kohtk (kohtk_at_discussions.microsoft.com)
Date: 08/20/04
- Next message: Adrian ~ FoobarSoftware.com: "RE: Global hook giving memory error"
- Previous message: CFF: "Re: How to create an initialised object declared as a class member variable?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Aug 2004 02:53:02 -0700
Hi,
I have an urgent problem here with regards to MC files.
I have created a .mc file which contain messages in English, Japanese,
Chinese, etc. According to the example given on Microsoft website
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/sample_message_text_file.asp),
the file is stored in Unicode (UTF-8) format, so if I view the file using a
Unicode-compatible editor, I can actually see the messages in its respective
languages.
Now, according to Microsoft documentation, I should be able to now compile
the .mc file and then generate different language resource strings. However,
I encounter an error when I try to compile the .mc file as follow:
> mc -u sample.mc
The error returned is:
"MC: -u switch cannot be used with non-Unicode message file!".
This does not seem right since my file is already in Unicode format. Does
anyone have any idea what is wrong?
In addition, I would like to know what is the encoding format of the output
messages stored in various generated *.bin files using the command above.
E.g. are the messages in Msg0411.bin (Japanese) file stored in "Shift-JIS"
format, or in "Unicode (UTF-8)" format (same as .mc file)?
Is there any difference in the generated *.bin files if I now compile .mc
with this additional option: E.g. > mc -u -U sample.mc
Using the FormatMessage() call, for each of the above cases (i.e. with or
without -U option to output in Unicode), what LangID should I supply in order
to display the messages in the correct language?
Thanks in advance for any help!
TK
- Next message: Adrian ~ FoobarSoftware.com: "RE: Global hook giving memory error"
- Previous message: CFF: "Re: How to create an initialised object declared as a class member variable?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|