Click here to Skip to main content
15,923,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow many of you use _tcsinc ? Pin
Chintoo72324-Mar-05 20:55
Chintoo72324-Mar-05 20:55 
AnswerRe: How many of you use _tcsinc ? Pin
toxcct24-Mar-05 21:17
toxcct24-Mar-05 21:17 
GeneralRe: How many of you use _tcsinc ? Pin
Chintoo72324-Mar-05 22:07
Chintoo72324-Mar-05 22:07 
GeneralRe: How many of you use _tcsinc ? Pin
toxcct24-Mar-05 22:16
toxcct24-Mar-05 22:16 
AnswerRe: How many of you use _tcsinc ? Pin
PJ Arends24-Mar-05 22:08
professionalPJ Arends24-Mar-05 22:08 
GeneralRe: How many of you use _tcsinc ? Pin
Chintoo72325-Mar-05 1:05
Chintoo72325-Mar-05 1:05 
AnswerRe: How many of you use _tcsinc ? Pin
Chintoo72325-Mar-05 1:20
Chintoo72325-Mar-05 1:20 
GeneralRe: How many of you use _tcsinc ? Pin
Blake Miller25-Mar-05 6:56
Blake Miller25-Mar-05 6:56 
If you use TCHAR, you are IMPLYING your string can be UNICODE if a UNICODE build is made. If your string must ABSOLUTELY be 'single byte characters' then use 'char' and if it must absolutely be UNICODE, then use wchar_t or WCHAR. You can potentially convert back and forth with MultiByteToWideChar and WideCharToMultiByte.

If you want your 'single-byte-character' processing to be internationalized, then at least compile for MBCS and use the 'mbs' for every hard-coded 'char' string and the '_tcs' functions on every TCHAR string. You get BIZARRE results if you hard code to an 'mbs' function against a TCHAR string and then commpile for UNICODE. Now you would be passing a wide-character string to a function expecting multi-byte character string.

Summary:
char -> use str or (preferably) mbs functions
TCHAR -> use tcs functions (compile either way)
WCHAR or wchar_t -> use wcs functions

AnswerRe: How many of you use _tcsinc ? Pin
David Crow25-Mar-05 3:35
David Crow25-Mar-05 3:35 
GeneralRe: How many of you use _tcsinc ? Pin
Chintoo72325-Mar-05 5:07
Chintoo72325-Mar-05 5:07 
AnswerRe: How many of you use _tcsinc ? Pin
Blake Miller25-Mar-05 6:47
Blake Miller25-Mar-05 6:47 
AnswerRe: How many of you use _tcsinc ? Pin
Michael Dunn25-Mar-05 6:49
sitebuilderMichael Dunn25-Mar-05 6:49 
AnswerRe: How many of you use _tcsinc ? Pin
cmk25-Mar-05 9:26
cmk25-Mar-05 9:26 
QuestionHow messages be dispatched? Pin
kokehqyu24-Mar-05 20:38
kokehqyu24-Mar-05 20:38 
QuestionCustom ActiveX control? Pin
foxyspy24-Mar-05 20:24
foxyspy24-Mar-05 20:24 
GeneralCapturing KeyUp and Setting Value ... Pin
Mitch F.24-Mar-05 20:19
Mitch F.24-Mar-05 20:19 
GeneralRe: Capturing KeyUp and Setting Value ... Pin
Anthony_Yio25-Mar-05 18:58
Anthony_Yio25-Mar-05 18:58 
GeneralDetermining if a character can be rendered in a certain font Pin
Taka Muraoka24-Mar-05 20:18
Taka Muraoka24-Mar-05 20:18 
GeneralPlease help me! Pin
dSolariuM24-Mar-05 20:13
dSolariuM24-Mar-05 20:13 
GeneralRe: Please help me! Pin
toxcct24-Mar-05 21:22
toxcct24-Mar-05 21:22 
GeneralRe: Please help me! Pin
wise_8224-Mar-05 23:23
wise_8224-Mar-05 23:23 
GeneralRe: Please help me! Pin
Chintoo72325-Mar-05 1:17
Chintoo72325-Mar-05 1:17 
GeneralRe: Please help me! Pin
toxcct25-Mar-05 1:30
toxcct25-Mar-05 1:30 
GeneralRe: Please help me! Pin
Chintoo72325-Mar-05 2:13
Chintoo72325-Mar-05 2:13 
GeneralRe: Please help me! Pin
toxcct25-Mar-05 2:19
toxcct25-Mar-05 2:19 

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.