Hello !
I try to use the localization with Builder C++.
In delphi, it is :
// requires unit WPUtils and WPActnStr
WPLangInterface := TWPLocalizationInterface.Create(WPLanguageControl1);
WPLanguageControl1.GlobalLanguage := 'DE';
WPLocalizeLoadForms := TRUE;
WPTools_LoadVCLStrings;
WPTools_LoadActionStrings;
In C++, i translate like this :
// requires unit WPUtils and WPActnStr
WPLangInterface = new TWPLocalizationInterface(WPLanguageControl1); //WPTOOLS5
WPLanguageControl1->GlobalLanguage = "DE";
WPLocalizeLoadForms = TRUE; //WPTOOLS5
WPTools_LoadVCLStrings(); //WPTOOLS5
WPTools_LoadActionStrings(); //WPTOOLS5
On the first line :
WPLangInterface = new TWPLocalizationInterface(WPLanguageControl1);
Construction
[C++ Erreur] xxxxxx.cpp(28): E2285 Impossible de trouver une correspondance pour 'TWPLocalizationInterface::TWPLocalizationInterface(TWPLanguageControl *)'
in english :
Impossible to find this prototype 'TWPLocalizationInterface::TWPLocalizationInterface(TWPLanguageControl *)'
Have you a solution or/and an example in C++ ?
François
:wink: