View Single Post
Old 03-02-2005, 09:56 PM   #1 (permalink)
Layla Nahar
Registered User
 
Join Date: Mar 2005
Location: Boston MA
Posts: 2
Layla Nahar is on a distinguished road
Error C2065: Cstring undeclared identifier

Hi,

I'm using Visual Studio 6, SP4.

with the follwing code:

#include <afxwin.h>
#include <iostream.h>
int main ()
{
Cstring s;

...

I get compiler "Error C2065: Cstring undeclared identifier" and for the life of me I can't make it go away. (I'm doing code from Richard Jones "Introduction to MFC programming")

I've tried #including afx.h, string.h and a number of other things.

1) anybody know how to get my compiler to recognize the Cstring type?

2) If not, what workarounds to I have? (CRect and CPoint declarations compile just fine) Can I get all the same member functions and formatting for strings another way?

thanks
Layla
Layla Nahar is offline   Reply With Quote