Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Main Window Title Pin
V.13-Jul-04 20:56
professionalV.13-Jul-04 20:56 
GeneralRe: Main Window Title Pin
Jeffrey Walton14-Jul-04 12:44
Jeffrey Walton14-Jul-04 12:44 
Generalhelp reg voice chat Pin
Member 101812813-Jul-04 20:47
Member 101812813-Jul-04 20:47 
GeneralMain Window Title Pin
«_Superman_»13-Jul-04 20:26
professional«_Superman_»13-Jul-04 20:26 
General_T, _TCHAR and TCHAR Pin
normus13-Jul-04 20:24
normus13-Jul-04 20:24 
GeneralRe: _T, _TCHAR and TCHAR Pin
User 58385213-Jul-04 20:38
User 58385213-Jul-04 20:38 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell13-Jul-04 20:57
Johann Gerell13-Jul-04 20:57 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell13-Jul-04 21:10
Johann Gerell13-Jul-04 21:10 
_T is not the same as _TCHAR or TCHAR in respect to functionality.

_T, TEXT and also L are used to convert string literals to wide or multi-byte type. While _T and TEXT converts to wide if UNICODE is defined and to multi-byte if UNICODE is undefined, L will always force the string literal to wide independent of the UNICODE define.

So,
_T("This will be a string of WCHAR characters "
   "if UNICODE is defined and of ordinary char "
   "characters if UNICODE is undefined.");

_T("This will also be a string of WCHAR characters "
   "if UNICODE is defined and of ordinary char "
   "characters if UNICODE is undefined.");

L"This, however, will always be a string of WCHAR characters.";
And WCHAR is just a wchar_t.

I highly recommend the article The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)[^] by Joel Spolsky.


--
The Blog: Bits and Pieces
GeneralRe: _T, _TCHAR and TCHAR Pin
normus13-Jul-04 22:46
normus13-Jul-04 22:46 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell14-Jul-04 0:39
Johann Gerell14-Jul-04 0:39 
GeneralRe: _T, _TCHAR and TCHAR Pin
normus14-Jul-04 3:16
normus14-Jul-04 3:16 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell14-Jul-04 3:57
Johann Gerell14-Jul-04 3:57 
QuestionHow to interface System to External Hardware Pin
zahoor ahmed13-Jul-04 20:08
zahoor ahmed13-Jul-04 20:08 
AnswerRe: How to interface System to External Hardware Pin
jhorstkamp13-Jul-04 23:24
jhorstkamp13-Jul-04 23:24 
QuestionWhen to use PostQuitMessage ? Pin
Hesham Amin13-Jul-04 19:47
Hesham Amin13-Jul-04 19:47 
AnswerRe: When to use PostQuitMessage ? Pin
ThatsAlok13-Jul-04 20:09
ThatsAlok13-Jul-04 20:09 
AnswerRe: When to use PostQuitMessage ? Pin
User 58385213-Jul-04 20:26
User 58385213-Jul-04 20:26 
GeneralRe: When to use PostQuitMessage ? Pin
Hesham Amin13-Jul-04 20:52
Hesham Amin13-Jul-04 20:52 
GeneralRe: When to use PostQuitMessage ? Pin
ThatsAlok13-Jul-04 22:13
ThatsAlok13-Jul-04 22:13 
GeneralRe: When to use PostQuitMessage ? Pin
User 58385215-Jul-04 13:30
User 58385215-Jul-04 13:30 
AnswerRe: When to use PostQuitMessage ? Pin
Jeff Walton14-Jul-04 12:49
Jeff Walton14-Jul-04 12:49 
QuestionHow to save GDI+ bmp file as PDF File Format. Pin
pubududilena13-Jul-04 19:40
pubududilena13-Jul-04 19:40 
AnswerRe: How to save GDI+ bmp file as PDF File Format. Pin
Sekar_Mokachandra17-Mar-05 11:40
Sekar_Mokachandra17-Mar-05 11:40 
GeneralC++ class design question - static member Pin
Indrawati13-Jul-04 19:21
Indrawati13-Jul-04 19:21 
GeneralRe: C++ class design question - static member Pin
maxsteel13-Jul-04 22:23
maxsteel13-Jul-04 22:23 

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.