Who knows how to use mc.exe (Message Compiler)?

I am trying to use mc.exe to create message files for my event logging program. But even the sample message file provided by Microsoft will not compile. Who knows how to write a message file that can be compiled by mc.exe?

EDIT . The error message I received is:

msgs.mc(1) : error : expected keyword
- ??

Edit 2: The problem is resolved . Mc.exe can only support a Unicode or ANSI encoded source file. My file is encoded as UTF8. What is it.

Thank.

+5
source share
3 answers

. Mc.exe Unicode ANSI. UTF8. .

, .

+5

,

: # 82, (0x2e), , . Enter, .

+5

The sample works for me in Visual Studio 2008 or 2010. How about placing your msgs.mc. file

And did you save as normal ascii? Perhaps the encoding header confuses it ...

+2
source

All Articles