Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Api : which lists the devices on a computer Pin
Gary R. Wheeler20-Mar-05 2:28
Gary R. Wheeler20-Mar-05 2:28 
GeneralWorker Thread Pin
Roger6518-Mar-05 13:12
Roger6518-Mar-05 13:12 
GeneralRe: Worker Thread Pin
PJ Arends18-Mar-05 13:27
professionalPJ Arends18-Mar-05 13:27 
GeneralRe: Worker Thread Pin
Roger6518-Mar-05 13:39
Roger6518-Mar-05 13:39 
GeneralRe: Worker Thread Pin
PJ Arends18-Mar-05 14:03
professionalPJ Arends18-Mar-05 14:03 
GeneralRe: Worker Thread Pin
Roger6518-Mar-05 14:45
Roger6518-Mar-05 14:45 
GeneralMFC: Unicode and Code Pages Pin
Jim Herren18-Mar-05 12:57
Jim Herren18-Mar-05 12:57 
GeneralRe: MFC: Unicode and Code Pages Pin
Mike Dimmick19-Mar-05 13:19
Mike Dimmick19-Mar-05 13:19 
If you're compiling with the UNICODE flag set, you'll be getting the Unicode versions of the APIs - e.g. ExtTextOutW rather than ExtTextOutA. The W versions do not convert the buffer passed to them, they treat it as UTF-16. By contrast the A versions convert their arguments then call the corresponding W version (in the main).

You should convert your strings to UTF-16. If they're dynamic strings use MultiByteToWideChar with an appropriate codepage parameter. If they're literal strings, use the L prefix on the declaration. Be aware that the compiler uses the current code page in effect at compile time to translate the source literal to UTF-16 in the compiled code.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: MFC: Unicode and Code Pages Pin
Jim Herren19-Mar-05 16:38
Jim Herren19-Mar-05 16:38 
GeneralGet "Text" with Hook Pin
postler-t18-Mar-05 11:25
postler-t18-Mar-05 11:25 
GeneralRe: Get "Text" with Hook Pin
Alexander M.,19-Mar-05 4:53
Alexander M.,19-Mar-05 4:53 
GeneralRe: Get "Text" with Hook Pin
postler-t19-Mar-05 6:44
postler-t19-Mar-05 6:44 
Generalproblem with TBSTYLE_FLAT toolbar Pin
ljr2418-Mar-05 11:10
ljr2418-Mar-05 11:10 
GeneralOnSize execution, locks Pin
Vancouver18-Mar-05 11:02
Vancouver18-Mar-05 11:02 
GeneralRe: OnSize execution, locks Pin
Blake Miller18-Mar-05 11:42
Blake Miller18-Mar-05 11:42 
GeneralRe: OnSize execution, locks Pin
Vancouver18-Mar-05 11:56
Vancouver18-Mar-05 11:56 
GeneralRe: OnSize execution, locks Pin
Blake Miller18-Mar-05 12:18
Blake Miller18-Mar-05 12:18 
GeneralRe: OnSize execution, locks Pin
Vancouver18-Mar-05 15:33
Vancouver18-Mar-05 15:33 
GeneralFinal explanation Pin
Vancouver19-Mar-05 10:59
Vancouver19-Mar-05 10:59 
Generalsizeof() question Pin
BlackDice18-Mar-05 10:22
BlackDice18-Mar-05 10:22 
GeneralRe: sizeof() question Pin
Ravi Bhavnani18-Mar-05 10:27
professionalRavi Bhavnani18-Mar-05 10:27 
GeneralRe: sizeof() question Pin
BlackDice18-Mar-05 10:42
BlackDice18-Mar-05 10:42 
GeneralRe: sizeof() question Pin
Ravi Bhavnani18-Mar-05 11:21
professionalRavi Bhavnani18-Mar-05 11:21 
GeneralRe: sizeof() question Pin
Blake Miller18-Mar-05 11:44
Blake Miller18-Mar-05 11:44 
GeneralRe: sizeof() question Pin
Ravi Bhavnani18-Mar-05 11:53
professionalRavi Bhavnani18-Mar-05 11:53 

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.