|
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
|