Manipulating a .rc file

  • Thread starter Thread starter Patanish
  • Start date Start date
P

Patanish

Hi all,

I am trying to manipulate the unicode strings in a .rc file
programatically.
For example, if I want to read the .rc file, and then read the strings
and then manipulate them and save it back (in same or another .rc file)

In .NET there is support using the ResXResourceReader/Writer for the
..ResX files, but nothing for .rc files. Is there any similar way in
..NET or Win32 to work with .rc files??

Thanks in advance!
 
Patanish said:
Hi all,

I am trying to manipulate the unicode strings in a .rc file
programatically.
For example, if I want to read the .rc file, and then read the strings
and then manipulate them and save it back (in same or another .rc file)

In .NET there is support using the ResXResourceReader/Writer for the
.ResX files, but nothing for .rc files. Is there any similar way in
.NET or Win32 to work with .rc files??

No. They're just text files - you'll have to write code to parse &
reconstruct the .RC file yourself.

-cd
 
Carl Daniel said:
No. They're just text files - you'll have to write code to parse &
reconstruct the .RC file yourself.

Since the resource compiler supports #include, you can probably save
yourself a lot of effort by moving the strings to a separate file #included
from the first. Then you won't have to mess with parsing anything expect
the string tables.

Also keeping your strings in a programmer-friendly database (SQL, XML, etc)
for manipulation, then writing an .rc file to be #included might prove to be
easier yet.
 
Back
Top