在《Creating a Simple Win32 Service in C++》一文中需要一个.RC的文件,文中只给出了“ the first part of the message source file”,全部的文件是这样的:
MessageId=100 SymbolicName=EVMSG_INSTALLED Language=English The %1 service was installed. . MessageId= SymbolicName=EVMSG_REMOVED Language=English The %1 service was removed. . MessageId= SymbolicName=EVMSG_NOTREMOVED Language=English The %1 service could not be removed. . MessageId= SymbolicName=EVMSG_CTRLHANDLERNOTINSTALLED Language=English The control handler could not be installed. . MessageId= SymbolicName=EVMSG_FAILEDINIT Language=English The initialization process failed. . MessageId= SymbolicName=EVMSG_STARTED Language=English The service was started. . MessageId= SymbolicName=EVMSG_BADREQUEST Language=English The service received an unsupported request. . MessageId= SymbolicName=EVMSG_DEBUG Language=English Debug: %1 . MessageId= SymbolicName=EVMSG_STOPPED Language=English The service was stopped. .
|
这样保存为文中提到的NTServMsg.mc文件,然后使用VC自带的MC.exe:
就可以做出所需要的.h、.bin和.rc文件了。
阅读(2352) | 评论(0) | 转发(0) |