Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using resource compiler for message tables

129 views
Skip to first unread message

Tobias Rapp

unread,
Jun 27, 2008, 6:27:19 AM6/27/08
to
Hi!

I tried to use the resource compiler "brcc32" that comes with Delphi 5
and Delphi 2006 (both seem to be the same version) to compile a .rc file
which contains a message table. The compiler produced a .res file and I
included it in my res-only DLL project but I can't use it to view event
log messages and I also can't open the .res or .dll file using ResHacker
or XN Resource Editor.

What I'd like to do is to create a message catalog for Windows event log
messages without the need to use a third-party GUI resource editor.
Something similar to this Blog entry:
http://texhex.blogspot.com/2004/09/creating-event-message-file-for-event.html

Is this possible? What is the problem with the .res file generated by
Delphi resource compiler?

My .rc file looks like this:

1 MESSAGETABLE
{
0, "%1"
1, "Hello world:\n%1"
2, "Another hello:\n%1"
...
24, "Still hello:\n%1"
}

Kind regards,
Tobias

0 new messages