Diffrence in the value returned by an ap - TechRepublic
General discussion
May 31, 2001 at 06:26 PM
upadhyaya_p_s

Diffrence in the value returned by an ap

by upadhyaya_p_s . Updated 25 years ago

Hi, I have written an application which is used to detect the language identifier of the text in the clipboard. When the keyboard type and language are US 101/102 and US English, application returs 409 on Windows NT and Windows 2000. Whereas the same application returns 4090409 on Windows 95, 98 and Me.
Would you please let me know why this difference in behaviour on Windows OS. Also which one is correct (409 or 4090409). The code is as follows

char a[10]; OpenClipboard(hwnd); HANDLE hLocale = GetClipboardData(CF_LOCALE); LCID *pLocale = (LCID *)GlobalLock(hLocale); GlobalUnlock(hLocale); sprintf(a,”%x”, (*pLocale)); MessageBox(0,a,”pLocale”, 0); CloseClipboard();

Regards, Upadhyaya .

This discussion is locked

All Comments