English
Forum

Multilanguage in DLLs

 
- Page 1 -



Stephan
Sonneborn
Hello together,

has someone of you Experience with Multilanguage-DLLs? I have in a Program the yet with complete unterschiedlichen DLLs resolved (means a with Texten in german, a in english, a in ...) This is by the management since very costly.
into DLLs can Yes a Language mitgeben. How can I The then in the program zuordnen? i think, is windows automatically make: one englisches windows becomes then The english Texts reading. but there's Yes alone for english x different Language Settings, which ought to one into DLL to put?

Can too in a german windows english Texts use?

82 kB
Hochgeladen:10/04/11
Downloadcounter190
Download
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
10/04/11  
 



« this Posting watts as Solution marked. »

- Page 2 -



Andreas
Miethe


the Umstellen on another Language is really right simply.
thereafter is the loading the Resources always same, alike which Language.

here time an example (functions only on NT-Systemen )

Download

530 kB
Hochgeladen:10/15/11
Downloadcounter260
Download
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
10/15/11  
 



 
- Page 1 -



Detlef
Jagolski
what about me thought The Solution of Andreas declared itself through

The MAKELANGID macro is defined as follows:

#define MAKELANGID(p, s) ((((WORD) (s)) << 10) | (WORD) (p))


from alone.
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
10/09/11  
 




Stephan
Sonneborn
Hello Detlef, Hello Andreas,
many Thanks for Your Help, but somehow stand I still aufm Hose:
I Have a DLL gebastelt with of/ one STRING-Resource into Sprachcodes neutral, GERMAN and ENGLISH.

In all dreien have I Texts hinterlegt:
100,Neutral; 100,Deutsch; 100,English

Through
CompileMarkSeparationwished I then on The Texts grab.How should because the Pointer "PointerAufID" looks?
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
10/10/11  
 



 
- Page 2 -



Detlef
Jagolski
from the API Using FindResourceEX:

Points to a zero-terminated string specifying the name of the resource. For more information, sea the Remarks section.

CompileMarkSeparation
var PointerAufID$ = "Name der Resource" + Chr$(0)
FindResourceEX(DllName&, ~RT_STRING,Addr(PointerAufID$), MAKELANGID(~Neutral, ~SUBLANG_Neutral))e>

Greeting

Detlef
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
10/11/11  
 



in lieu of the Strings rather The Resource-ID use, means simply The number hinschreiben.
after The Resource found is, is yet LoadResource() and LockResource() necessary, then standing in the zurückgegebenen memory the Unicode(?? be I now so ausm head überfragt)-Text, though as Text-bank. with up to 16 Strings or so. You must means in memory yet The position the right Strings calculate. all told means not so simply.
what in the API missing is something like How LoadString with Language-Support, So one LoadStringEx. Gibts but unfortunately not.

therefore recommend I already almost, different ID's for Sprachentexte To use, z.B . ex 1000 for German Texts, ex 2000 for english etc. and then normal with XProfanfunktionen einzulesen. is In any drop plainer, if neither so... calm.
 
10/11/11  
 




Stephan
Sonneborn
Frabbing (11.10.11)

therefore recommend I already almost, different ID's for Sprachentexte To use, z.B . ex 1000 for German Texts, ex 2000 for english etc. and then normal with XProfanfunktionen einzulesen. is In any drop plainer, if neither so... calm.


Frank, you have Yes sooo right!!!
CompileMarkSeparation
 $H WINDOWS.PH
VAR CompanyDLL& = USEDLL("Test.dll")
DEF MakeLangID(2) (@&(2) << 10) | @&(1)
DEF FindResourceEx(4) !"kernel32.dll", "FindResourceExA"
DEF LoadResource(2) !"kernel32.dll", "LoadResource"
CLS
print  EXTSTRING$(CompanyDLL&, 100)
print companydll&
var PointerAufID$ = "100" + Chr$(0)
print FindResourceEx(CompanyDLL&, ~RT_STRING, Addr(PointerAufID$), MAKELANGID(~LANG_GERMAN, ~SUBLANG_GERMAN))
print LoadResource(CompanyDll&, FindResourceEx(CompanyDLL&, ~RT_STRING, Addr(PointerAufID$), MAKELANGID(~LANG_GERMAN, ~SUBLANG_GERMAN)))
Waitinput
FREEDLL
nyDll&

this code supply me always only a 0 as lever...

16 kB
Hochgeladen:10/11/11
Downloadcounter210
Download
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
10/11/11  
 




Andreas
Miethe


the Umstellen on another Language is really right simply.
thereafter is the loading the Resources always same, alike which Language.

here time an example (functions only on NT-Systemen )

Download

530 kB
Hochgeladen:10/15/11
Downloadcounter260
Download
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
10/15/11  
 




Stephan
Sonneborn
The XProfan Doc has again zugeschlagen!!!!

thanks Andreas!!!!

its in the doing right simply, if one white pointed goes...
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
10/15/11  
 




E.T.
super, Andreas !!!
there can I me Yes in future too The "mehreren Dll's" save.

THANK YOU !!!
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
10/15/11  
 




Julian
Schmidt
functions the too with of/ one integrally normalen Exe instead of of/ one DLL? Can these Strings in the program self Platzieren? if so would find I the still plenty praktischer.

[OFFTOPIC]in the Topics-cover is a mistake in writing! If someone accordingly to "Multilanguage" seek becomes nothing found. [/OFFTOPIC]
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
10/15/11  
 




Andreas
Miethe


Julian57 (15.10.11)

functions the too with of/ one integrally normalen Exe instead of of/ one DLL? Can these Strings in the program self Platzieren? if so would find I the still plenty praktischer.


clear, the goes with of/ one Exe just as How with of/ one Dll.
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
10/16/11  
 




Can these Strings in the program self Platzieren? if so would find I the still plenty praktischer.


The LemonEd can the by RC or RES-File install, simply whom Scriptnamen into Settings to that Source indicate. Download find You on of my Page or with Paule.

so a RC would then so similar looks:

LANGUAGE 0, SUBLANG_NEUTRAL
STRINGTABLE
{
1000, "Good morning"
1001, "How are you?"
}

LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
STRINGTABLE
{
1000, "Guten Morgen"
1001, "Wie goes it to you?"
}
 
10/16/11  
 




Stephan
Sonneborn
Julian57 (15.10.11)


[OFFTOPIC]in the Topics-cover is a mistake in writing! If someone accordingly to "Multilanguage" seek becomes nothing found. [/OFFTOPIC]




thanks for Info Julian, habs korrigiert.
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
10/16/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

18.726 Views

Untitledvor 0 min.
Kutsche02/27/20
Stephan Sonneborn10/31/19
Walter02/06/18
Boroberto04/22/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie