How make it

How make it

Postby lailton.webmaster » Wed Nov 05, 2008 6:39 am

Hey there

I´m make a sistem to 3 language so i want know
how use the String Table of Pelles C for Windows to create
the words and how in my sistem and when chance language change in my sistem..

i need have 3 string table

portugues
ingles
espanhol

string table

(Portugues)
ID Text
1001 Nome
1002..

(Espanhol)
ID Text
1001 Nombre
1002..

(Ingles)
ID Text
1001 Name
1002..

someone use it ?? can help me please
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby StefanHaupt » Wed Nov 05, 2008 8:57 am

You can use LoadString () to read the text from the resource.

rPreview.prg is a good sample to study how to do.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Armando » Wed Nov 05, 2008 1:24 pm

Laiton:

With 16 bits I do this way


Code: Select all  Expand view
LOCAL cAplicacion
LOCAL cWinNom
LOCAL cCopyRight

SET RESOURCES TO "WinNom.Dll"

REDEFINE cAplicacion RESOURCE 1
REDEFINE cWinNom RESOURCE 2
REDEFINE cCopyRight RESOURCE 3


RESOURCE 1 is the first one line in the resource file and
RESOURCE 2 is the second one line in the resource file
and so on.

Perhaps this way works fine with 32bits

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3209
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Thanks

Postby lailton.webmaster » Wed Nov 05, 2008 1:53 pm

All right with LoadString ()

THANKS SO MUCH
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 68 guests