Connecting Tech Pros Worldwide Help | Site Map

Reading Strings from Resource file.

  #1  
Old December 21st, 2007, 12:15 AM
Sabiyur
Guest
 
Posts: n/a

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
  #2  
Old December 21st, 2007, 12:45 AM
Ron AF Greve
Guest
 
Posts: n/a

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

  #3  
Old December 21st, 2007, 02:45 AM
Ian Collins
Guest
 
Posts: n/a

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.
  #4  
Old December 21st, 2007, 02:45 AM
Ian Collins
Guest
 
Posts: n/a

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.
  #5  
Old December 21st, 2007, 08:35 AM
jalina
Guest
 
Posts: n/a

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.
  #6  
Old December 21st, 2007, 10:35 PM
Jim Langston
Guest
 
Posts: n/a

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


  #7  
Old December 22nd, 2007, 02:25 AM
Sabiyur
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying Resource Files Separately... Jason Richmeier answers 1 May 2nd, 2006 05:35 AM
Resource File (.resx) does not show changes?? al answers 3 November 21st, 2005 04:31 AM
Global resource file martin answers 6 November 18th, 2005 06:22 AM
Escape Sequences in Strings Ken answers 3 November 15th, 2005 11:50 AM