?
Solved

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

Posted on 2000-04-10
9
Medium Priority
?
902 Views
Last Modified: 2012-08-13
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
Comment
Question by:UandI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 2

Expert Comment

by:Serega
ID: 2699906
You can select menu File/Save As  and select type "Resource Script" .Then save it with preferred filename.  :-)
0
 

Author Comment

by:UandI
ID: 2699935
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
 
LVL 32

Expert Comment

by:jhance
ID: 2700006
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
Industry Leaders: 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!

 

Author Comment

by:UandI
ID: 2700022
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
 

Accepted Solution

by:
niven earned 200 total points
ID: 2700105
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
 

Author Comment

by:UandI
ID: 2700115
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
 

Expert Comment

by:niven
ID: 2700132
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
 

Author Comment

by:UandI
ID: 2700133
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
 
LVL 22

Expert Comment

by:nietod
ID: 2700140
>> .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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question