Load a string alert by res (Resolved)
- arthursilvestre
- Posts: 32
- Joined: Thu Sep 20, 2012 7:29 pm
Load a string alert by res (Resolved)
Good morning, I want to load a string that is contained in my file *. Res (whatever is in html, string table, etc..). There is that possibility? already very grateful.
Last edited by arthursilvestre on Mon Sep 02, 2013 2:14 pm, edited 1 time in total.
- Biel EA6DD
- Posts: 680
- Joined: Tue Feb 14, 2006 9:48 am
- Location: Mallorca
- Contact:
Re: Load a string alert by res
To retireve from String table, you can use FW function LoadString.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Load a string alert by res
Arthur,
as Biel pointed, here you have an example:
MsgInfo( LoadString( GetResources(), 10 ) ) // where 10 is the ID of the string in the resource file
test.rc
as Biel pointed, here you have an example:
MsgInfo( LoadString( GetResources(), 10 ) ) // where 10 is the ID of the string in the resource file
test.rc
Code: Select all
STRINGTABLE
BEGIN
10, "Testing strings loading from Resources"
20, "02/27/94"
END
- arthursilvestre
- Posts: 32
- Joined: Thu Sep 20, 2012 7:29 pm
Re: Load a string alert by res
Good morning, I did this test and it worked, but there is a character limitation correct? is there any way that there is no such limitation? this linhares your code is the file DCDATA right?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Load a string alert by res
Arthur,
What limitation do you mean ?
You can use PellesC resources editor to easily build it
What limitation do you mean ?
You can use PellesC resources editor to easily build it
- arthursilvestre
- Posts: 32
- Joined: Thu Sep 20, 2012 7:29 pm