473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Reading Strings from Resource file.


Hi All,
The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft resource ".rc" file to store the strings.
I am not sure, how to write strings in ".rc" file and retrieve it
programmatically?

Do you guys have any idea on this?
Is there any good article on this?

Please help.

Thanks
Sabiyur
Dec 21 '07 #1
6 5678
Hi,

Reading:

http://msdn2.microsoft.com/en-us/library/aa381042.aspx
Basically. In VS goto the resource view
expand the treectrl
Goto string table (or right click to add one).
Double click it

On another pane you can now add string resources and there symbolic code
(which you can use to refer to it in the rest of your code).
Regards, Ron AF Greve

http://www.InformationSuperHighway.eu

"Sabiyur" <Sa***********@gmail.comwrote in message
news:ee**********************************@x29g2000 prg.googlegroups.com...
>
Hi All,
The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft resource ".rc" file to store the strings.
I am not sure, how to write strings in ".rc" file and retrieve it
programmatically?

Do you guys have any idea on this?
Is there any good article on this?

Please help.

Thanks
Sabiyur

Dec 21 '07 #2
Sabiyur wrote:
Hi All,
The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft resource ".rc" file to store the strings.
I am not sure, how to write strings in ".rc" file and retrieve it
programmatically?
Why not just use a simple text file?

--
Ian Collins.
Dec 21 '07 #3
Ron AF Greve wrote:

[more top posted off topic advice]

Please stop top posting off topic advice!

--
Ian Collins.
Dec 21 '07 #4
Ian Collins a écrit :
Sabiyur wrote:
>Hi All,
The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft resource ".rc" file to store the strings.
I am not sure, how to write strings in ".rc" file and retrieve it
programmatically?
Why not just use a simple text file?
..rc files are actually text files.
Dec 21 '07 #5
jalina wrote:
Ian Collins a écrit :
>Sabiyur wrote:
>>Hi All,
The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft resource ".rc" file to store the
strings. I am not sure, how to write strings in ".rc" file and
retrieve it programmatically?
Why not just use a simple text file?
.rc files are actually text files.
Yes, but not *simple* text files.

--
Jim Langston
ta*******@rocketmail.com
Dec 21 '07 #6
On Dec 20, 4:35*pm, "Ron AF Greve" <ron@localhostwrote:
Hi,

Reading:

http://msdn2.microsoft.com/en-us/library/aa381042.aspx

Basically. In VS goto the resource view
expand the treectrl
Goto string table (or right click to add one).
Double click it

On another pane you can now add string resources and there symbolic code
(which you can use to refer to it in the rest of your code).

Regards, Ron AF Greve

http://www.InformationSuperHighway.eu

"Sabiyur" <SabiyurRah...@gmail.comwrote in message

news:ee**********************************@x29g2000 prg.googlegroups.com...


Hi All,
* * * The application I am doing requires hundreds of strings to be
stored & retrieve those randomly.
I think I can use microsoft *resource ".rc" file to store the strings.
I am not sure, how to write strings in ".rc" file and retrieve it
programmatically?
Do you guys have any idea on this?
Is there any good article on this?
Please help.
Thanks
Sabiyur- Hide quoted text -

- Show quoted text -

Thanks a lot. The ".rc" file string table works for my application.
Dec 22 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fabrice | last post by:
Hello, I've got trouble reading a text file (event viewer dump) by using the getline() function... After 200 - 300 lines that are read correctly, it suddenly stops reading the rest of the...
40
by: googler | last post by:
I'm trying to read from an input text file and print it out. I can do this by reading each character, but I want to implement it in a more efficient way. So I thought my program should read one...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
4
by: dwyer.bill | last post by:
My boss insists that whenever we use a string we place it in a resource file every single time. This goes for error string that are displayed through a message box, constants, ect. He claims that...
2
by: Mike P | last post by:
I've always put my connection strings in the web.config, but I've just recently seen an example of a connection string in a resource file. What are the advantages of doing this, and could you do it...
1
by: Alan | last post by:
Is there a way in C# to have the compiler enforce that users use Resource Strings? Say I have a logging subsystem, and I want make sure that the only string values that get logged come from a...
7
by: nws_reader | last post by:
I have a web service that needs to return a particular string for one of its web methods. I would like to manage the strings in a resource file. I went through a lot of the help provided on the...
0
by: =?Utf-8?B?V2F5bmVN?= | last post by:
I just had a thought and wondered if I am missing something or it is a good suggestion. Looking at some code, I was sorting through strings that should be put into a resource file for...
6
by: efrenba | last post by:
Hi, I came from delphi world and now I'm doing my first steps in C++. I'm using C++builder because its ide is like delphi although I'm trying to avoid the vcl. I need to insert new features...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.