#include <afxwin.h> (at the top)
#include "stdafx.h"
#using
<mscorlib.dll>and declared in method like this
CString csUser, csPassword, csServer;
//===========================
error C2061: syntax error : identifier 'CString'
Spent four to six hours to resolve it,
However, I need this CString to work, but can not change it String* or any thing as the code runs a lot with CString.
Any help or clue, how to resolve it

CString is not identified by Visual Studio 2005?
ShmulikPrimes
#include <atlstr.h> // Bad as the #include is ignored
#include "stdafx.h"
#include <atlstr.h> // Good
sticky27
ricardo corbacho
burberrybebe
Peter Krochenski
fatal error C1189: #error : afxstr.h can only be used in MFC projects. Use atlstr.h
I tried atlstr.h, it gave many errors.
For More info, I am trying to use this CString in a class (which is already coded and working fine with VS 2003) which is called by windows C++ forms.
Thanks,
Joe.B
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=310f7908-190a-4e84-9ca1-fd7a59189786