Connecting Tech Pros Worldwide Help | Site Map

Reading Strings from Resource file.

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 20th, 2007, 11:15 PM
Sabiyur
Guest
 
Posts: n/a
Default 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

  #2  
Old December 20th, 2007, 11:45 PM
Ron AF Greve
Guest
 
Posts: n/a
Default 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, 01:45 AM
Ian Collins
Guest
 
Posts: n/a
Default 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, 01:45 AM
Ian Collins
Guest
 
Posts: n/a
Default 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, 07:35 AM
jalina
Guest
 
Posts: n/a
Default 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, 09:35 PM
Jim Langston
Guest
 
Posts: n/a
Default 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, 01:25 AM
Sabiyur
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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.