I want to use CString in win32. What header files should I include to use CString?
Printable View
I want to use CString in win32. What header files should I include to use CString?
Then you want to learn MFC.
Or you could just learn string instead.
gg
You are suppose to include atlstr.h for non-MFC version of CString. and cstringt.h for MFC version. Then you need to use the member function GetBuffer() to get the pointer to the actual string stored internally or else you get the hex address of the data.
Include #windows.h
Kuphryn