Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting char to char* Pin
David Crow4-May-05 2:15
David Crow4-May-05 2:15 
GeneralRe: Converting char to char* Pin
talkster54-May-05 4:39
talkster54-May-05 4:39 
GeneralRe: Converting char to char* Pin
David Crow4-May-05 4:49
David Crow4-May-05 4:49 
GeneralRe: Converting char to char* Pin
talkster54-May-05 5:33
talkster54-May-05 5:33 
GeneralRe: Converting char to char* Pin
David Crow4-May-05 6:07
David Crow4-May-05 6:07 
GeneralRe: Converting char to char* Pin
talkster54-May-05 6:17
talkster54-May-05 6:17 
GeneralRe: Converting char to char* Pin
talkster54-May-05 6:21
talkster54-May-05 6:21 
GeneralRe: Converting char to char* Pin
John R. Shaw4-May-05 9:55
John R. Shaw4-May-05 9:55 
Assuming that GetChar() returns a character and takes 3 char* as arguments, then the third argument is wrong. Of course the third argument would be wrong any way.

TCHAR('C') is equivalent to char('C') or (UNICODE) wchar_t('C')
_T('C') is equivalent to 'C' or (UNICODE) L'C'
_T("String") is equivalent to "String" or (UNICODE) L"String"

TCHAR("String") is invalid; because you are trying to convert a char* into a char.

Of course if your intention is to take the low-byte of the address of the string "NoneSet", then my assumptions are all wrong and there is nothing wrong with that line of code.

I am a day late, but I hope that helps.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralSetTimer() in Serial Comm Program Question Pin
CNewbie3-May-05 7:59
CNewbie3-May-05 7:59 
GeneralRe: SetTimer() in Serial Comm Program Question Pin
Trollslayer3-May-05 12:28
mentorTrollslayer3-May-05 12:28 
GeneralRe: SetTimer() in Serial Comm Program Question Pin
John R. Shaw4-May-05 11:10
John R. Shaw4-May-05 11:10 
GeneralRe: SetTimer() in Serial Comm Program Question Pin
CNewbie4-May-05 11:24
CNewbie4-May-05 11:24 
GeneralRe: SetTimer() in Serial Comm Program Question Pin
John R. Shaw4-May-05 12:09
John R. Shaw4-May-05 12:09 
GeneralCreating a dll using a type library Pin
ChicoM3-May-05 7:51
ChicoM3-May-05 7:51 
GeneralMulti arrays Pin
bitsNbites3-May-05 6:29
bitsNbites3-May-05 6:29 
GeneralRe: Multi arrays Pin
David Crow3-May-05 6:47
David Crow3-May-05 6:47 
GeneralRe: Multi arrays Pin
bitsNbites3-May-05 7:52
bitsNbites3-May-05 7:52 
GeneralRe: Multi arrays Pin
David Crow3-May-05 8:01
David Crow3-May-05 8:01 
GeneralRe: Multi arrays Pin
Priyank Bolia3-May-05 19:52
Priyank Bolia3-May-05 19:52 
GeneralRe: Multi arrays Pin
bitsNbites4-May-05 15:42
bitsNbites4-May-05 15:42 
GeneralRe: Multi arrays Pin
Priyank Bolia4-May-05 18:19
Priyank Bolia4-May-05 18:19 
GeneralPlease help me. Pin
dSolariuM3-May-05 6:12
dSolariuM3-May-05 6:12 
GeneralRe: Please help me. Pin
David Crow3-May-05 6:50
David Crow3-May-05 6:50 
GeneralRe: Please help me. Pin
dSolariuM16-May-05 6:35
dSolariuM16-May-05 6:35 
GeneralFile Version Pin
picasso23-May-05 6:01
picasso23-May-05 6:01 

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.