Click here to Skip to main content
15,893,486 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionATL CString Pin
hrishi32110-Jul-11 18:49
hrishi32110-Jul-11 18:49 
AnswerRe: ATL CString Pin
Cool_Dev10-Jul-11 21:02
Cool_Dev10-Jul-11 21:02 
GeneralRe: ATL CString Pin
hrishi32110-Jul-11 21:18
hrishi32110-Jul-11 21:18 
GeneralRe: ATL CString Pin
Cool_Dev11-Jul-11 4:36
Cool_Dev11-Jul-11 4:36 
GeneralRe: ATL CString Pin
hrishi32111-Jul-11 17:43
hrishi32111-Jul-11 17:43 
GeneralRe: ATL CString Pin
Richard MacCutchan11-Jul-11 22:26
mveRichard MacCutchan11-Jul-11 22:26 
GeneralRe: ATL CString Pin
BWake8-Aug-11 5:47
BWake8-Aug-11 5:47 
AnswerRe: ATL CString Pin
Richard MacCutchan11-Jul-11 5:03
mveRichard MacCutchan11-Jul-11 5:03 
You cannot use casting to convert from a large element type to a smaller one without potential loss of data, you must use some form of conversion. If you stick with the default CString[^] class it will handle either char or wchar_t depending on your project settings. If your project needs to use both Unicode and MBCS then you need to provide conversion functions at the appropriate parts of your application. If it will only ever use one or the other but you need to provide a version that will handle each type then use TCHAR as the type for all your character variables and _T("constant string") macros for all constants. That way you can simply rebuild your project to handle the appropriate encoding.
The best things in life are not things.

GeneralRe: ATL CString Pin
hrishi32111-Jul-11 17:45
hrishi32111-Jul-11 17:45 
QuestionAvoiding MFC CString Pin
hrishi32110-Jul-11 16:58
hrishi32110-Jul-11 16:58 
AnswerRe: Avoiding MFC CString Pin
Albert Holguin12-Jul-11 5:47
professionalAlbert Holguin12-Jul-11 5:47 
GeneralRe: Avoiding MFC CString Pin
VeganFanatic24-Jul-11 8:49
VeganFanatic24-Jul-11 8:49 
GeneralRe: Avoiding MFC CString Pin
Albert Holguin25-Jul-11 4:10
professionalAlbert Holguin25-Jul-11 4:10 
AnswerRe: Avoiding MFC CString Pin
Derakhshan.a24-Jul-11 20:50
Derakhshan.a24-Jul-11 20:50 
QuestionMFC DPI Dependent Behaviour Pin
Kyudos5-Jul-11 13:54
Kyudos5-Jul-11 13:54 
GeneralRe: MFC DPI Dependent Behaviour Pin
Albert Holguin6-Jul-11 4:15
professionalAlbert Holguin6-Jul-11 4:15 
QuestionBasic doubt with Class template Pin
hrishi3214-Jul-11 16:13
hrishi3214-Jul-11 16:13 
AnswerRe: Basic doubt with Class template Pin
Richard MacCutchan5-Jul-11 0:11
mveRichard MacCutchan5-Jul-11 0:11 
GeneralRe: Basic doubt with Class template Pin
hrishi3215-Jul-11 20:37
hrishi3215-Jul-11 20:37 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan5-Jul-11 22:20
mveRichard MacCutchan5-Jul-11 22:20 
GeneralRe: Basic doubt with Class template Pin
hrishi3215-Jul-11 23:05
hrishi3215-Jul-11 23:05 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan5-Jul-11 23:14
mveRichard MacCutchan5-Jul-11 23:14 
GeneralRe: Basic doubt with Class template Pin
hrishi3216-Jul-11 21:45
hrishi3216-Jul-11 21:45 
GeneralRe: Basic doubt with Class template Pin
Albert Holguin5-Jul-11 9:44
professionalAlbert Holguin5-Jul-11 9:44 
GeneralRe: Basic doubt with Class template Pin
hrishi3215-Jul-11 20:41
hrishi3215-Jul-11 20:41 

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.