Load a string alert by res (Resolved)

Post Reply
User avatar
arthursilvestre
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Load a string alert by res (Resolved)

Post by arthursilvestre »

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.
User avatar
Biel EA6DD
Posts: 680
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Re: Load a string alert by res

Post by Biel EA6DD »

To retireve from String table, you can use FW function LoadString.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Load a string alert by res

Post by Antonio Linares »

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

Code: Select all

STRINGTABLE 
BEGIN
    10, "Testing strings loading from Resources"
    20, "02/27/94"
END
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
arthursilvestre
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Load a string alert by res

Post by arthursilvestre »

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?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Load a string alert by res

Post by Antonio Linares »

Arthur,

What limitation do you mean ?

You can use PellesC resources editor to easily build it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
arthursilvestre
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Load a string alert by res

Post by arthursilvestre »

Post Reply