Connecting Tech Pros Worldwide Help | Site Map

Reading Strings from Resource file.

Sabiyur
Guest
 
Posts: n/a
#1: Dec 21 '07

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
Ron AF Greve
Guest
 
Posts: n/a
#2: Dec 21 '07

re: Reading Strings from Resource file.


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" <SabiyurRahman@gmail.comwrote in message
news:ee169e52-99b3-4f23-b522-ff9a7c90fa78@x29g2000prg.googlegroups.com...
Quote:
>
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

Ian Collins
Guest
 
Posts: n/a
#3: Dec 21 '07

re: Reading Strings from Resource file.


Sabiyur wrote:
Quote:
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.
Ian Collins
Guest
 
Posts: n/a
#4: Dec 21 '07

re: Reading Strings from Resource file.


Ron AF Greve wrote:

[more top posted off topic advice]

Please stop top posting off topic advice!

--
Ian Collins.
jalina
Guest
 
Posts: n/a
#5: Dec 21 '07

re: Reading Strings from Resource file.


Ian Collins a écrit :
Quote:
Sabiyur wrote:
Quote:
>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.
Jim Langston
Guest
 
Posts: n/a
#6: Dec 21 '07

re: Reading Strings from Resource file.


jalina wrote:
Quote:
Ian Collins a écrit :
Quote:
>Sabiyur wrote:
Quote:
>>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
tazmaster@rocketmail.com


Sabiyur
Guest
 
Posts: n/a
#7: Dec 22 '07

re: Reading Strings from Resource file.


On Dec 20, 4:35*pm, "Ron AF Greve" <ron@localhostwrote:
Quote:
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:ee169e52-99b3-4f23-b522-ff9a7c90fa78@x29g2000prg.googlegroups.com...
>
>
>
>
>
Quote:
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?
>
Quote:
Do you guys have any idea on this?
Is there any good article on this?
>
Quote:
Please help.
>
Quote:
Thanks
Sabiyur- Hide quoted text -
>
- Show quoted text -

Thanks a lot. The ".rc" file string table works for my application.
Closed Thread