Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » GetUserDefaultUILanguage identifier not found (GetUserDefaultUILanguage identifier not found)
GetUserDefaultUILanguage identifier not found [message #44790] |
Sun, 28 June 2015 15:27  |
awksed
Messages: 68 Registered: April 2012
|
Member |
|
|
Hi,
Windows CtrlLib app.
Despite #include <windows.h> I get the compiler error: GetUserDefaultUILanguage identifier not found.
I have often hit this problem with other windows functions, e.g. WideCharToMultiByte. Most windows O/S calls seem to work but some give problems.
How do I get all the windows system calls to work with U++? Or are there U++ equivalents?
Thanks,
Jan
|
|
|
Re: GetUserDefaultUILanguage identifier not found [message #44792 is a reply to message #44790] |
Sun, 28 June 2015 22:56   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
The most important thing in multi platform frameworks is that you shouldn't use operating system related methods at all in your applications. Please notice that code writing in the way you are talking about didn't compile under Linux.
Ultimate++ is such powerful framework and has language related function, so "GetUserDefaultUILanguage" is not needed anymore. For more information please read following topic: http://www.ultimatepp.org/srcdoc$Core$i18n$en-us.html.
For equivalents please search in documentation, you can do this easily by searching in Google box located on the left side of this website (For some reason it is only available outside forum ).
Equivalent for function "GetUserDefaultUILanguage";
SetLanguage(GetSystemLNG()); // <- You should do this at the begging of your app then macro "t_" should load translated string.
P.S.
Don't forget to create translation file (.t extension). To synchronize translation please click on flags icon inside ide.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 28 June 2015 23:05] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 19:20:27 CEST 2025
Total time taken to generate the page: 0.04007 seconds
|