Reading Strings from Resource file. 
December 20th, 2007, 11:15 PM
| | | 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 | 
December 20th, 2007, 11:45 PM
| | | 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
| | 
December 21st, 2007, 01:45 AM
| | | 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. | 
December 21st, 2007, 01:45 AM
| | | 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. | 
December 21st, 2007, 07:35 AM
| | | 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. | 
December 21st, 2007, 09:35 PM
| | | 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 | 
December 22nd, 2007, 01:25 AM
| | | 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:
Thanks
Sabiyur- Hide quoted text -
| >
- Show quoted text -
|
Thanks a lot. The ".rc" file string table works for my application. | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,840 network members.
|