Solved

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

Posted on 2000-04-10
9
879 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
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!

 

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 50 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

749 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