I need to derive a language identifier from a locale (LCID). This is what I found in MSDN:
The LANGIDFROMLCID macro is defined as follows:
#define LANGIDFROMLCID(lcid) ((WORD) (lcid))
Does someone know how to convert this to Power Basic code?
If I try the code below, I get the correct result, but that might be a coincidence. Is my give-it-a-try-code a correct "translation" of the above mentioned definition?
The LANGIDFROMLCID macro is defined as follows:
#define LANGIDFROMLCID(lcid) ((WORD) (lcid))
Does someone know how to convert this to Power Basic code?
If I try the code below, I get the correct result, but that might be a coincidence. Is my give-it-a-try-code a correct "translation" of the above mentioned definition?
Code:
wLangID = LO(WORD, dwLocale)
Comment