Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: try / catch : Oops - fogot something... Pin
Tim Deveaux2-Apr-01 13:33
Tim Deveaux2-Apr-01 13:33 
GeneralRe: try / catch Pin
Matt Cooper2-Apr-01 19:54
Matt Cooper2-Apr-01 19:54 
GeneralRe: try / catch Pin
Tim Deveaux3-Apr-01 13:45
Tim Deveaux3-Apr-01 13:45 
GeneralRe: try / catch Pin
Matt Cooper4-Apr-01 18:27
Matt Cooper4-Apr-01 18:27 
Generaltwo q's..._T("What the heck?") and handling CString's as float's Pin
Cam1-Apr-01 13:22
Cam1-Apr-01 13:22 
GeneralRe: two q's..._T( Pin
Christian Graus1-Apr-01 13:52
protectorChristian Graus1-Apr-01 13:52 
GeneralRe: two q's..._T( Pin
Cam1-Apr-01 15:20
Cam1-Apr-01 15:20 
GeneralRe: two q's..._T( Pin
PJ Arends1-Apr-01 14:22
professionalPJ Arends1-Apr-01 14:22 
_T(x) is a macro that that makes a string literal Unicode compliant.

from TChar.h

#define _T(x) __T(x)
#define _TEXT(x) __T(x)

and elsewhere in TChar.h

#ifdef _UNICODE
...
#define __T(x) L ## x
...
#else
...
#define __T(x) x
...
#endif

so _T("Icon") becomes
"Icon" if _UNICODE is not defined,
and L"Icon" if _UNICODE is defined

So if you are not writing a Unicode app, there is no difference between the two function calls, but if you are using Unicode, there is a definite difference.
GeneralRe: two q's..._T( Pin
3-Apr-01 3:40
suss3-Apr-01 3:40 
GeneralExporting Constants from Vc Dll Pin
Sabith Mannadiar1-Apr-01 4:45
Sabith Mannadiar1-Apr-01 4:45 
GeneralRe: Exporting Constants from Vc Dll Pin
l a u r e n1-Apr-01 9:57
l a u r e n1-Apr-01 9:57 
QuestionHow to Associate ImageList 6 to ListView 6 in VC++ Pin
1-Apr-01 0:43
suss1-Apr-01 0:43 
AnswerRe: How to Associate ImageList 6 to ListView 6 in VC++ Pin
Brendan Tregear1-Apr-01 15:46
Brendan Tregear1-Apr-01 15:46 
Generalexec Pin
Starodubtsev Sergey1-Apr-01 0:15
Starodubtsev Sergey1-Apr-01 0:15 
GeneralRe: exec Pin
Mustafa Demirhan1-Apr-01 1:09
Mustafa Demirhan1-Apr-01 1:09 
GeneralStrange kind of class Pin
Ahmad31-Mar-01 22:21
Ahmad31-Mar-01 22:21 
GeneralRe: Strange kind of class Pin
l a u r e n31-Mar-01 23:04
l a u r e n31-Mar-01 23:04 
GeneralRe: Strange kind of class Pin
Ahmad31-Mar-01 23:13
Ahmad31-Mar-01 23:13 
GeneralRe: Strange kind of class Pin
markkuk1-Apr-01 23:27
markkuk1-Apr-01 23:27 
Generalominous message Pin
Ahmad31-Mar-01 22:20
Ahmad31-Mar-01 22:20 
GeneralRe: ominous message Pin
Anna-Jayne Metcalfe1-Apr-01 9:54
Anna-Jayne Metcalfe1-Apr-01 9:54 
GeneralQuestion about IPicture Pin
Ahmad31-Mar-01 22:15
Ahmad31-Mar-01 22:15 
GeneralEditBox Pin
Derick Cyril Thomas31-Mar-01 17:40
Derick Cyril Thomas31-Mar-01 17:40 
GeneralRe: EditBox Pin
Michael Dunn31-Mar-01 18:26
sitebuilderMichael Dunn31-Mar-01 18:26 
GeneralRe: EditBox Pin
l a u r e n31-Mar-01 23:00
l a u r e n31-Mar-01 23:00 

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.