hinksj
December 24th, 2002, 02:02 PM
I'm new to NET ... strictly using VC++
VC Net on a Win2K machine
char *p;
CString Test = "Hello World";
p = (LPCTSTR)m_SendText;
The following error is identified .... I can't figure out how to fix it ...
I have the same code written in VC6 that ported to NET that does not complain.
test.cpp(114): error C2440: '=' : cannot convert from 'ATL::ChTraitsBase<BaseType>::PCXSTR' to 'char *'
with
[
BaseType=TCHAR
]
VC Net on a Win2K machine
char *p;
CString Test = "Hello World";
p = (LPCTSTR)m_SendText;
The following error is identified .... I can't figure out how to fix it ...
I have the same code written in VC6 that ported to NET that does not complain.
test.cpp(114): error C2440: '=' : cannot convert from 'ATL::ChTraitsBase<BaseType>::PCXSTR' to 'char *'
with
[
BaseType=TCHAR
]