• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 935
  • Last Modified:

Importing/Exporting string tables in MS-VC++ as text

I'm trying to export a string table as text format in order to give them to another department for translation into various languages.
Since it's not possible to just select the data in the string table and copy it and the string table data is stored as binary data in the *.rc file, I'm looking for good ideas or may me an add-in with this feature.
0
UandI
Asked:
UandI
1 Solution
 
SeregaCommented:
You can select menu File/Save As  and select type "Resource Script" .Then save it with preferred filename.  :-)
0
 
UandIAuthor Commented:
Thank you for your suggestion, but it's not exactl what I need.
I just need the string table information from the rc file in simple text format. With Save As Resource Script I just create another *.rc file which is of no use in this matter.
Maybe you have another idea?
:-)
0
 
jhanceCommented:
I guess I don't understand the problem here.  

The .rc file is a straight text file already.  Just give then the whole thing.  Are you confusing the .rc file with the compiled .res file?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
UandIAuthor Commented:
Well, I know that the .rc file is a text file but the string table information within is not stored as plan ASCII but as a bunch of hex-codes. Maybe I was not that clear before - sorry about that.
Pleas let me know if you have any other idea.
0
 
nivenCommented:
If you open the .rc file in a text editor, you'll see this:

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE
BEGIN
    IDS_PROJNAME            "*"
END

(just a random .rc file, with 1 entry)

What else would you want to see?
0
 
UandIAuthor Commented:
Well, I know that the .rc file is a text file but the string table information within is not stored as plan ASCII but as a bunch of hex-codes. Maybe I was not that clear before - sorry about that.
Pleas let me know if you have any other idea.
0
 
nivenCommented:
I just added the String 'ID_STRING101' with caption "This is an example" to the above String Table, when I view the .rc file, I see:

STRINGTABLE DISCARDABLE
BEGIN
    IDS_PROJNAME            "*"
    IDS_STRING101           "This is an example"
END

So I'm afraid I cant find the hex-codes anywhere....
0
 
UandIAuthor Commented:
Thank you! I guess I was looking at the wrong part of the rc-file. I didn't realize that I was lookin at the dialog info part.
0
 
nietodCommented:
>> .rc file is a text file but the string table
>> information within is not stored as
>> plan ASCII but as a bunch of hex-codes.
A string table is almost always specified as plain ASCII in the .rc file.

I don't know why yours would be in HEX. I suspect someone or something did something wrong in the file's past that produced this.  Or perhaps the information came from reverse engeneering a program.  

But if you convert the string table to ASCII (manually, or write a little conversion program to do it) you should be fine.  The table should remain ASCII after that.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now