Click here to Skip to main content
15,910,411 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralF1 Help for Dynamic dialog boxes Pin
ellenu2-Dec-03 4:53
ellenu2-Dec-03 4:53 
GeneralMSComm error Pin
El'Cachubrey2-Dec-03 4:29
El'Cachubrey2-Dec-03 4:29 
GeneralRe: MSComm error Pin
KellyR2-Dec-03 4:37
KellyR2-Dec-03 4:37 
QuestionSetting the cursor of a button? Pin
KellyR2-Dec-03 4:19
KellyR2-Dec-03 4:19 
AnswerRe: Setting the cursor of a button? Pin
valikac2-Dec-03 5:46
valikac2-Dec-03 5:46 
GeneralRe: Setting the cursor of a button? Pin
KellyR2-Dec-03 6:21
KellyR2-Dec-03 6:21 
QuestionHow to convert a UNICODE string to double data type? Pin
stberger2-Dec-03 4:12
stberger2-Dec-03 4:12 
AnswerRe: How to convert a UNICODE string to double data type? Pin
Mike Beckerleg2-Dec-03 4:37
Mike Beckerleg2-Dec-03 4:37 
GeneralCreateProcessAsUser Pin
Harry Diel2-Dec-03 3:55
Harry Diel2-Dec-03 3:55 
GeneralPainting Bitmap with VC 6.0 Pin
chadell2-Dec-03 3:41
chadell2-Dec-03 3:41 
GeneralRe: Painting Bitmap with VC 6.0 Pin
RChin2-Dec-03 3:56
RChin2-Dec-03 3:56 
GeneralRe: Painting Bitmap with VC 6.0 Pin
Monty22-Dec-03 19:22
Monty22-Dec-03 19:22 
GeneralWin32 SDK ::RegisterWindowMessage Pin
berndg2-Dec-03 3:39
berndg2-Dec-03 3:39 
GeneralRe: Win32 SDK ::RegisterWindowMessage Pin
GeMe_Hendrix2-Dec-03 11:31
GeMe_Hendrix2-Dec-03 11:31 
GeneralRe: Win32 SDK ::RegisterWindowMessage Pin
berndg3-Dec-03 10:19
berndg3-Dec-03 10:19 
GeneralIs there any tool that provides Autocompletion,Syntax coloring,etc. Pin
Deepa D2-Dec-03 3:26
Deepa D2-Dec-03 3:26 
GeneralFormat a date according to the system language Pin
Daed2-Dec-03 3:20
Daed2-Dec-03 3:20 
GeneralRe: Format a date according to the system language Pin
David Crow2-Dec-03 9:44
David Crow2-Dec-03 9:44 
GeneralRe: Format a date according to the system language Pin
Daed2-Dec-03 20:40
Daed2-Dec-03 20:40 
Yes i tried GetLocaleInfo to get the locale language.
I set the locale language to be English and the date/time language to be the local language. I needed this because i only want the month name to be displayed in the local language and the numbers and date order to be displayed in English. Most of the languages worked fine except the Right-to-Left languages like Arabic and Hebrew, ??? are displayed instead. What can i do?!

TCHAR strLanguage[256];
GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLANGUAGE, strLanguage, sizeof(strLanguage));

CString cstrlastLocale;
#ifdef _UNICODE
cstrlastLocale = (CString) _wsetlocale(LC_ALL, _T("English"));
_wsetlocale(LC_TIME, strLanguage);
#else
cstrlastLocale = (CString) setlocale(LC_ALL, _T("English"));
_wsetlocale(LC_TIME, strLanguage);
#endif

QuestionRefresh an image displayed in my dialog window ? Pin
Member 6658972-Dec-03 3:06
Member 6658972-Dec-03 3:06 
AnswerRe: Refresh an image displayed in my dialog window ? Pin
KellyR2-Dec-03 4:24
KellyR2-Dec-03 4:24 
GeneralRe: Refresh an image displayed in my dialog window ? Pin
Member 6658972-Dec-03 4:29
Member 6658972-Dec-03 4:29 
GeneralRe: Refresh an image displayed in my dialog window ? Pin
KellyR2-Dec-03 4:34
KellyR2-Dec-03 4:34 
GeneralRe: Refresh an image displayed in my dialog window ? Pin
Member 6658972-Dec-03 4:41
Member 6658972-Dec-03 4:41 
QuestionHow can I override CPropertySheet::RemovePage(int nPage) in a derived class? Pin
mfc_surfer2-Dec-03 2:10
mfc_surfer2-Dec-03 2:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.