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

C / C++ / MFC

 
GeneralRe: CString to char conversion Pin
David Crow20-Apr-05 2:27
David Crow20-Apr-05 2:27 
GeneralRe: CString to char conversion Pin
ThatsAlok20-Apr-05 20:21
ThatsAlok20-Apr-05 20:21 
GeneralRe: CString to char conversion Pin
hithesh20-Apr-05 7:50
hithesh20-Apr-05 7:50 
GeneralRe: CString to char conversion Pin
James R. Twine20-Apr-05 8:04
James R. Twine20-Apr-05 8:04 
GeneralRe: CString to char conversion Pin
hithesh20-Apr-05 8:09
hithesh20-Apr-05 8:09 
GeneralRe: CString to char conversion Pin
James R. Twine20-Apr-05 8:14
James R. Twine20-Apr-05 8:14 
GeneralRe: CString to char conversion Pin
hithesh20-Apr-05 8:26
hithesh20-Apr-05 8:26 
GeneralRe: CString to char conversion Pin
James R. Twine20-Apr-05 8:50
James R. Twine20-Apr-05 8:50 
[Remember to rate my posts if you found them helpful! Smile | :) ]
   Remember what I said about "once you start using TCHAR"?  All constant strings should be treated as TCHAR too, which means you wrap them in _TEXT() or _T() macros.  (It is good practice to always use this macro, and use the corresponsing TCHAR-based versions of all string manipulation/processing functions.  It takes a little while to get used to but quickly becomes second nature.)

   That macro leaves the string unmodified in ANSI builds, or prepends the L modifier in Unicode builds, which converts it to a wide string, so...
<br />
m_display.Format( _T( "%f" ), output);<br />

   -Becomes:
<br />
m_display.Format( L"%f", output);<br />

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: CString to char conversion Pin
hithesh20-Apr-05 9:26
hithesh20-Apr-05 9:26 
GeneralRe: CString to char conversion Pin
Rick York20-Apr-05 10:22
mveRick York20-Apr-05 10:22 
GeneralRe: CString to char conversion Pin
hithesh20-Apr-05 10:38
hithesh20-Apr-05 10:38 
GeneralRe: CString to char conversion Pin
ThatsAlok20-Apr-05 17:51
ThatsAlok20-Apr-05 17:51 
GeneralGrab Webpage to clipboard (as bitmap) Pin
Mathefreak19-Apr-05 23:11
Mathefreak19-Apr-05 23:11 
GeneralRe: Grab Webpage to clipboard (as bitmap) Pin
Sheng Jiang 蒋晟20-Apr-05 13:19
Sheng Jiang 蒋晟20-Apr-05 13:19 
Questionhow to make lines visible all the time!! Pin
mafuza19-Apr-05 23:03
mafuza19-Apr-05 23:03 
AnswerRe: how to make lines visible all the time!! Pin
Cedric Moonen19-Apr-05 23:15
Cedric Moonen19-Apr-05 23:15 
GeneralRe: how to make lines visible all the time!! Pin
mafuza21-Apr-05 22:13
mafuza21-Apr-05 22:13 
GeneralRe: how to make lines visible all the time!! Pin
Cedric Moonen21-Apr-05 22:18
Cedric Moonen21-Apr-05 22:18 
GeneralAutomatic Proxy URL Pin
Geert van Horrik19-Apr-05 22:05
Geert van Horrik19-Apr-05 22:05 
GeneralChange text color in static (ATL+MFC) problem Pin
AdyOS19-Apr-05 21:43
AdyOS19-Apr-05 21:43 
GeneralRe: Change text color in static (ATL+MFC) problem Pin
Geert van Horrik19-Apr-05 22:05
Geert van Horrik19-Apr-05 22:05 
GeneralRe: Change text color in static (ATL+MFC) problem Pin
AdyOS19-Apr-05 22:22
AdyOS19-Apr-05 22:22 
GeneralRe: Change text color in static (ATL+MFC) problem Pin
David Crow20-Apr-05 2:30
David Crow20-Apr-05 2:30 
Generalline color of statistic Pin
ThinkingPrometheus19-Apr-05 21:34
ThinkingPrometheus19-Apr-05 21:34 
Generalconvert string to double or string to ascii Pin
nehathoma19-Apr-05 19:18
nehathoma19-Apr-05 19:18 

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.