开发者

Viewing available message strings (from mc.exe) in a 3rd party DLL

Is there a way to view all the messages (ie messages created for FormatMessage by the mc.exe message compiler) available within a DLL? It appears they are added开发者_Python百科 as a single resource as type 11. Unfortunately that resource is binary.


I use Resource Hacker for all things resource-related. These messages show up as a "Message Table" resource that contains all the human-readable strings and their IDs.


You can use FindResource or FindResourceEx to enum all resources in the DLL. Then you can use MESSAGE_RESOURCE_ENTRY, MESSAGE_RESOURCE_DATA and MESSAGE_RESOURCE_BLOCK to decode the data. See for example http://www.codeproject.com/KB/system/msgdump.aspx for details or serch for other examples searching for the API functions and the sutructures.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜