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

C / C++ / MFC

 
Questionstatic_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
Atul2319-Dec-06 21:34
Atul2319-Dec-06 21:34 
AnswerRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
sunit519-Dec-06 21:46
sunit519-Dec-06 21:46 
AnswerRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
toxcct19-Dec-06 22:13
toxcct19-Dec-06 22:13 
AnswerRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
CPallini19-Dec-06 22:17
mveCPallini19-Dec-06 22:17 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
sunit519-Dec-06 22:41
sunit519-Dec-06 22:41 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
CPallini19-Dec-06 23:23
mveCPallini19-Dec-06 23:23 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
toxcct20-Dec-06 0:31
toxcct20-Dec-06 0:31 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
CPallini20-Dec-06 0:41
mveCPallini20-Dec-06 0:41 
toxcct wrote:
this is faulty, because you convert a string of TCHARs into a string of wchar_t.


not if you have _UNICODE defined.Smile | :)
(and if you haven't defined it, the compiler will complain about...)

By the way T2WC does not exists on my system (Visual Studio 6) can you tell me, please, how is it defined (I'm curious about...)?

Rose | [Rose]

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
S Douglas20-Dec-06 0:51
professionalS Douglas20-Dec-06 0:51 
GeneralOK, I fixed it. Pin
CPallini20-Dec-06 0:59
mveCPallini20-Dec-06 0:59 
GeneralRe: OK, I fixed it. Pin
S Douglas20-Dec-06 1:02
professionalS Douglas20-Dec-06 1:02 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
toxcct20-Dec-06 0:58
toxcct20-Dec-06 0:58 
GeneralRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
CPallini20-Dec-06 1:06
mveCPallini20-Dec-06 1:06 
QuestionRe: static_cast' : cannot convert from 'class CString' to 'const char *const ' Pin
David Crow20-Dec-06 2:32
David Crow20-Dec-06 2:32 
QuestionDeleting an item from list box using API Pin
Suresh H19-Dec-06 20:46
Suresh H19-Dec-06 20:46 
AnswerRe: Deleting an item from list box using API Pin
Mila02519-Dec-06 21:11
Mila02519-Dec-06 21:11 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 21:50
Suresh H19-Dec-06 21:50 
AnswerRe: Deleting an item from list box using API Pin
CPallini19-Dec-06 21:16
mveCPallini19-Dec-06 21:16 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 21:48
Suresh H19-Dec-06 21:48 
GeneralRe: Deleting an item from list box using API Pin
CPallini19-Dec-06 22:38
mveCPallini19-Dec-06 22:38 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 22:47
Suresh H19-Dec-06 22:47 
Questionunhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 20:04
With_problem19-Dec-06 20:04 
QuestionRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
prasad_som19-Dec-06 20:13
prasad_som19-Dec-06 20:13 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 20:16
With_problem19-Dec-06 20:16 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
prasad_som19-Dec-06 20:21
prasad_som19-Dec-06 20:21 

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.