MFC: String* to const char* or String* to char Conversion
How can I convert a String* in MFC to const char* mychar or char mychar[MAX_PATH] ?
How can I convert a String* in MFC to const char* mychar or char mychar[MAX_PATH] ?
In MFC 8.0 CString is a typedef for CStringT, which inherits from CSimpleStringT.
The following are references for the methods and operator allowing direct access to the string contained in the CSimpleStringT, and thus the CString:
http://msdn2.microsoft.com/library/ysk0ddz5.aspx
http://msdn2.microsoft.com/library/tk1z2hd9.aspx
http://msdn2.microsoft.com/library/k59cayc6.aspx
The list of methods for CSimpleStringT can be found at:
http://msdn2.microsoft.com/library/8fx6d2h7.aspx
The list of methods for CStringT can be found at:
http://msdn2.microsoft.com/library/abzc9989.aspx