Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I hate Unicode!! Pin
Michael Dunn26-Aug-06 21:27
sitebuilderMichael Dunn26-Aug-06 21:27 
GeneralRe: I hate Unicode!! [modified] Pin
Waldermort26-Aug-06 22:08
Waldermort26-Aug-06 22:08 
GeneralRe: I hate Unicode!! [modified] Pin
fefe.wyx26-Aug-06 22:24
fefe.wyx26-Aug-06 22:24 
GeneralRe: I hate Unicode!! Pin
Waldermort26-Aug-06 22:48
Waldermort26-Aug-06 22:48 
GeneralRe: I hate Unicode!! Pin
fefe.wyx26-Aug-06 23:33
fefe.wyx26-Aug-06 23:33 
GeneralRe: I hate Unicode!! Pin
Waldermort27-Aug-06 0:27
Waldermort27-Aug-06 0:27 
QuestionRegistry Unicode Problem Pin
lucki_luke26-Aug-06 9:55
lucki_luke26-Aug-06 9:55 
AnswerRe: Registry Unicode Problem Pin
Mike Dimmick26-Aug-06 11:09
Mike Dimmick26-Aug-06 11:09 
If you have 'Use Unicode Character Set' selected in Project Properties, the registry APIs will be in Unicode mode (technically, RegSetValueEx is a macro which maps to RegSetValueExW) and expect to be passed a UTF-16 string (an array of WCHAR, an LPWSTR).

If this is defined, however, all GUI controls should be giving you text in Unicode format anyway (again, strictly it's that the GetWindowText macro maps to GetWindowsTextW), so no conversions should be required. A window can be in 'ANSI' (byte-oriented character set) mode or in 'Unicode' mode; which it is depends on the variant of RegisterClassEx called. If this mismatches the rest of your program, some unexpected conversions can occur. I'm not quite sure how the standard predefined controls get set up.

Advanced: this setting in VS determines whether UNICODE (and _UNICODE), MBCS (and _MBCS), or neither, are defined on the compiler's command line. The TCHAR.H header handles the underscore-prefixed variants for the C runtime string functions which include a 't' in their names (which are Microsoft extensions), while the Windows headers handle the non-prefixed variants for Windows APIs.

Stability. What an interesting concept. -- Chris Maunder

Questionreading values within std::list types Pin
jon-8026-Aug-06 8:34
professionaljon-8026-Aug-06 8:34 
AnswerRe: reading values within std::list types Pin
Waldermort26-Aug-06 9:23
Waldermort26-Aug-06 9:23 
GeneralRe: reading values within std::list types Pin
jon-8026-Aug-06 10:40
professionaljon-8026-Aug-06 10:40 
GeneralRe: reading values within std::list types Pin
Waldermort26-Aug-06 10:53
Waldermort26-Aug-06 10:53 
AnswerRe: reading values within std::list types [modified] Pin
Mike Danberg27-Aug-06 17:53
Mike Danberg27-Aug-06 17:53 
QuestionOperating system info Pin
Kiran Pinjala26-Aug-06 8:29
Kiran Pinjala26-Aug-06 8:29 
AnswerRe: Operating system info Pin
Mike Dimmick26-Aug-06 9:47
Mike Dimmick26-Aug-06 9:47 
Questionconverting str::string to const char* Pin
jon-8026-Aug-06 8:03
professionaljon-8026-Aug-06 8:03 
AnswerRe: converting str::string to const char* Pin
Pierre Leclercq26-Aug-06 8:34
Pierre Leclercq26-Aug-06 8:34 
GeneralRe: converting str::string to const char* Pin
Pierre Leclercq26-Aug-06 9:29
Pierre Leclercq26-Aug-06 9:29 
AnswerRe: converting str::string to const char* Pin
Waldermort26-Aug-06 8:59
Waldermort26-Aug-06 8:59 
GeneralRe: converting str::string to const char* Pin
fefe.wyx26-Aug-06 15:59
fefe.wyx26-Aug-06 15:59 
QuestionLoading drivers programmatically Pin
Still learning how to code26-Aug-06 6:58
Still learning how to code26-Aug-06 6:58 
AnswerRe: Loading drivers programmatically Pin
Gary R. Wheeler26-Aug-06 12:28
Gary R. Wheeler26-Aug-06 12:28 
GeneralRe: Loading drivers programmatically Pin
Still learning how to code27-Aug-06 1:42
Still learning how to code27-Aug-06 1:42 
Questionunicode strings Pin
Waldermort26-Aug-06 5:42
Waldermort26-Aug-06 5:42 
AnswerRe: unicode strings Pin
fefe.wyx26-Aug-06 6:32
fefe.wyx26-Aug-06 6:32 

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.