vijay.j
vijay.j

Reputation: 91

VC6 compilation error

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

Upvotes: 0

Views: 676

Answers (3)

John Dibling
John Dibling

Reputation: 101446

Yes, CStringA and CStringW are in VC6.

Don't use VC6.

Upvotes: 2

djeidot
djeidot

Reputation: 4642

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

Upvotes: 0

Joris Timmermans
Joris Timmermans

Reputation: 10968

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

Upvotes: 0

Related Questions