views:

133

answers:

4

Hi there are some vs2005 c++ files in PJNSMTPCONNECTION Classes, but my application is in vc6, now can any one tell whether CSTRINGA, CSTRINGW are available in vc6.. if not how overcome this problem

A: 

Not an answer, but a direction to look: CStringA and CStringW are two specializations of CString, for ASCII (A) and wide-character (W) versions.

MadKeithV
D:\src\SocMFC.h(74) : error C2061: syntax error : identifier 'CString'D:\src\SocMFC.h(76) : error C2061: syntax error : identifier 'CString'
vijay.j
these are error s i m getting in vc6, while comling
vijay.j
A: 

Some basic tests in VC6 revealed that CStringW and CStringA are not recognized by the VC6 compiler.

However, the header file for CString (afx.h) specifies that it accepts both ANSI and Unicode inputs. Maybe you could just do

#define CStringA CString
#define CStringW CString
djeidot
A: 

Did you include head file for CString?

tooter
A: 

Yes, CStringA and CStringW are in VC6.

Don't use VC6.

John Dibling