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

C / C++ / MFC

 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George20-Aug-07 17:30
George_George20-Aug-07 17:30 
GeneralRe: LPCSTR and LPCWSTR Pin
David Crow20-Aug-07 17:45
David Crow20-Aug-07 17:45 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George20-Aug-07 17:47
George_George20-Aug-07 17:47 
GeneralRe: LPCSTR and LPCWSTR Pin
David Crow21-Aug-07 3:13
David Crow21-Aug-07 3:13 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George21-Aug-07 3:17
George_George21-Aug-07 3:17 
AnswerRe: LPCSTR and LPCWSTR Pin
Iain Clarke, Warrior Programmer20-Aug-07 5:41
Iain Clarke, Warrior Programmer20-Aug-07 5:41 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George20-Aug-07 17:26
George_George20-Aug-07 17:26 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George20-Aug-07 17:36
George_George20-Aug-07 17:36 
Hi Iain,


A further question,

why the statement has warning message when UNICODE is defined (you can find it from my sample in question)?

WCHAR* p = _T("hello");

warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'WCHAR *'


regards,
George
GeneralRe: LPCSTR and LPCWSTR Pin
Iain Clarke, Warrior Programmer21-Aug-07 0:02
Iain Clarke, Warrior Programmer21-Aug-07 0:02 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George21-Aug-07 1:24
George_George21-Aug-07 1:24 
GeneralRe: LPCSTR and LPCWSTR Pin
Iain Clarke, Warrior Programmer21-Aug-07 3:29
Iain Clarke, Warrior Programmer21-Aug-07 3:29 
GeneralRe: LPCSTR and LPCWSTR Pin
George_George21-Aug-07 5:28
George_George21-Aug-07 5:28 
QuestionIDispatch to class object Pin
Monark20-Aug-07 4:54
Monark20-Aug-07 4:54 
AnswerRe: IDispatch to class object Pin
Mark Salsbery20-Aug-07 8:05
Mark Salsbery20-Aug-07 8:05 
QuestionTrouble with vectors. Newbie needs help! Pin
Flipflopninja20-Aug-07 4:49
Flipflopninja20-Aug-07 4:49 
AnswerRe: Trouble with vectors. Newbie needs help! Pin
Maxwell Chen20-Aug-07 5:05
Maxwell Chen20-Aug-07 5:05 
AnswerRe: Trouble with vectors. Newbie needs help! Pin
David Crow20-Aug-07 5:20
David Crow20-Aug-07 5:20 
AnswerRe: Trouble with vectors. Newbie needs help! [modified] Pin
Graham Shanks20-Aug-07 5:37
Graham Shanks20-Aug-07 5:37 
Questionfopen and wfopen Pin
George_George20-Aug-07 4:35
George_George20-Aug-07 4:35 
QuestionRe: fopen and wfopen Pin
David Crow20-Aug-07 4:39
David Crow20-Aug-07 4:39 
AnswerRe: fopen and wfopen Pin
George_George20-Aug-07 5:00
George_George20-Aug-07 5:00 
QuestionRe: fopen and wfopen Pin
David Crow20-Aug-07 5:18
David Crow20-Aug-07 5:18 
AnswerRe: fopen and wfopen Pin
George_George20-Aug-07 17:43
George_George20-Aug-07 17:43 
GeneralRe: fopen and wfopen Pin
David Crow21-Aug-07 2:55
David Crow21-Aug-07 2:55 
GeneralRe: fopen and wfopen Pin
George_George21-Aug-07 3:09
George_George21-Aug-07 3:09 

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.