Article View: borland.public.delphi.commandlinetools
Article #189Using resource compiler for message tables
From: 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
Technical Details
Message-ID:
<4864c088@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,eef933219133053b,start X-Google-Attributes: gidff8f1,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 27 Jun 2008 12:27:19 +0200 From: Tobias Rapp <t.rapp_no-spam@noa-audio.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Using resource compiler for message tables Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.23.242.14 Message-ID: <4864c088@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214562440 213.23.242.14 (27 Jun 2008 03:27:20 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail