| |
|
|
- 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? |
|
|
| 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 |
|
|
| 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. |
|
|
| |
|
|
|
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 CompileMarkSeparationFindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~Neutral, ~SUBLANG_Neutral))
FindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~German, ~SUBLANG_German))
FindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~English, ~SUBLANG_English_US))re> wished 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 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. |
|
|
| |
|
|
|
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... |
|
|
| 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 |
|
|
| 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 X2Grüß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] |
|
|
| |
|
|
|
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?" }
|
|
|
| |
|
|
|
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 ▲ |
|
|
|