Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-04-10
9
Medium Priority
?
924 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

618 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