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

res -> rc (decompile)

1,610 views
Skip to first unread message

Petter

unread,
May 18, 2005, 9:28:21 AM5/18/05
to
I am looking for a command-line tool to generate a RC file from a RES file
(Windows dialogs etc). Today I use "Save as" in Microsoft Visual C++ 6.0,
but I want to do this automatically in a batch file. Can you help me?

A little explanation to why I need this:
1. I compile my *.rc files to a *.res file
2. I open this *.res file to have a "clean" file without defines and
comments
3. I use a search/replace tool to translate all text to a second language
4. I compile the new file to a language dependent resource dll.
I do this every time I change the main resource file

Best regards, Petter


muchan

unread,
May 18, 2005, 9:43:41 AM5/18/05
to

How about putting all "language dependant" text in string tables,
then put all string tables in original language in separate file and
include it in the .rc file, then you can translate only that separate
file and you can make new .res for each translated language?

muchan

Message has been deleted

Petter

unread,
May 18, 2005, 1:00:39 PM5/18/05
to
Thanks - it is possible to use string tables but for this project (2MB
dialogs + menus) it is not attractive.

I still hope to find a good command-line RES->RC file converter! An EXE->RC
file converter will also do if that is easier to find.

Best regards, Petter

"muchan" <q...@nimport.ou> wrote in message
news:iEHie.12183$F6.25...@news.siol.net...

muchan

unread,
May 19, 2005, 4:35:22 AM5/19/05
to
Petter wrote:
> Thanks - it is possible to use string tables but for this project (2MB
> dialogs + menus) it is not attractive.
>
> I still hope to find a good command-line RES->RC file converter! An EXE->RC
> file converter will also do if that is easier to find.
>
> Best regards, Petter
>

One of my colleague wrote (for his own use) an interactive filter program,
that scans input files (.h, .c, .cpp or .rc or anything) and write them
to output files, (with the same name in another directory) and for
each text between "", check a translation look-up table (separate file)
if found, it automatically replace the text, if not found, ask in the
dialog window. It works like spell-checker program, he can choose
ignore (once), register to ignore, replace (once), register the translation
for these text. He can edit the look-up table file (off-line translation)
and rerun the filter on the source files.

We didn't make it for sale... you make your own, or maybe I can ask him
if we can ship it to someone outside the company...

At least you get an idea how your problem could be solved otherwise.

muchan

Petter

unread,
May 21, 2005, 11:15:53 AM5/21/05
to
Thank you, I will consider enhancing my search/replace tool to do this with
the original *.rc file.

I also found a tool that can extract a clean *.rc file from a *.res file
here: http://resourceeditor.sicomponents.com/
This operation can be done with the following command: resbldr2.exe -e ALL
input_file_name.res output_file_name.rc
If anybody knows a way to do this with Microsoft Visual Studio tools I am
still very interested!

Best regards, Petter

"muchan" <q...@nimport.ou> wrote in message

news:fdYie.12191$F6.25...@news.siol.net...

0 new messages