Thread View: borland.public.delphi.commandlinetools
1 messages
1 total messages
Started by Tobias Rapp
Fri, 27 Jun 2008 10:27
Using resource compiler for message tables
Author: Tobias Rapp
Date: Fri, 27 Jun 2008 10:27
Date: Fri, 27 Jun 2008 10:27
30 lines
1766 bytes
1766 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads