M
Markus Hämmerli
I ' ll tra to convert a Cstring to char* without success.
I working in a Unicode enabled environment
this is working in Unicode
CString source = _T("TestString");
TCHAR *szSource = source.GetBuffer(0 );
but i need a char* and so this is not working
CString source = _T("TestString");
char* mszSource = source.GetBuffer(0 );
I get the error 'system' : cannot convert parameter 1 from 'unsigned short
*' to 'const char *'
have got anybody an idea how to solve it.
Many Thanks a beginner
Markus
I working in a Unicode enabled environment
this is working in Unicode
CString source = _T("TestString");
TCHAR *szSource = source.GetBuffer(0 );
but i need a char* and so this is not working
CString source = _T("TestString");
char* mszSource = source.GetBuffer(0 );
I get the error 'system' : cannot convert parameter 1 from 'unsigned short
*' to 'const char *'
have got anybody an idea how to solve it.
Many Thanks a beginner
Markus