Makra PRIMARYLANGID, SUBLANGID a MAKELANGID

Klíčová slova: macro, PRIMARYLANGID, SUBLANGID, MAKELANGID, API
Rubrika: Delphi

Pokud jste někdy narazili na potřebu využít v Delphi makra PRIMARYLANGID, SUBLANGID nebo MAKELANGID přináším vám přepis těchto maker. Původní zdroj těchto maker naleznete také na community.borland.com .

 

// makro PRIMARYLANGID
function PRIMARYLANGID(lgid : Word) : LongInt;
begin
result := lgid and $3FF;
end;

// makro SUBLANGID
function SUBLANGID(lgid : Word) : LongInt;
begin
result := lgid shr 10;
end;

// makro MAKELANGID
function MAKELANGID(sPrimaryLanguage : Word; sSubLanguage : Word) : Word;
begin
result := (sSubLanguage shl 10) or sPrimaryLanguage;
end;

Zdroj: community.borland.com .
 
Autor: Jiří Provazník
Datum vydání: 07.09.2006 | Zobrazeno: 3201
Permanentní odkaz: Makra PRIMARYLANGID, SUBLANGID a MAKELANGID

Komentáře (2)
For a limited time we have lowered the rate on targeted website traffic. We have visitors from virtually every country on Earth. Each visitor is targeted by both country and keywords that you submit when you start your free trial period. If you need more visitors or product sales try our service free for seven days and we will send you 500 free visitors during the trial. There are no contracts and if you cancel during the trial period you will not be charged anything! Start your trial today: http://insl.co/11 Unsubscribe here: http://stpicks.com/2ruse
Autor:Yukiko
For a limited time we have lowered the rate on targeted website traffic. We have visitors from virtually every country on Earth. Each visitor is targeted by both country and keywords that you submit when you start your free trial period. If you need more visitors or product sales try our service free for seven days and we will send you 500 free visitors during the trial. There are no contracts and if you cancel during the trial period you will not be charged anything! Start your trial today: http://stpicks.com/2rusd Unsubscribe here: http://stpicks.com/2ruse
Autor:Ashlee
Přidej vlastní komentář:
Následující (běžně neviditelná) pole slouží pro vnitřní identifikaci systému. Pokud je vyplníte nebude možné váš požadavek na straně serveru zpracovat:
URL:
contents:
Website:
Pro odeslání vašeho komentáře použijte tlačítko "Odeslat". Toto tlačítko nepoužívejte:

Následující položky je vhodné vyplnit:
Jméno :
Email :
Web :
Místo :
Hodnocení:
Hodnocení jako pomocí hvězdiček
1/5= nejhorší, 5/5=nejlepší