>>> const char* str = (LPCSTR)cstring;
I want to put the contents of a CString into my own String class, or a
std::string.
The cast to LPCSTR will do.
But if the application is Unicode, you will run into problems.
You should use LPCTSTR to be generic. Also, you should
provide a way to use std::wstring for Unicode application and
std::string for ANSI applications.
Same notes for your own class.
--
Mihai
-------------------------
Replace _year_ with _ to get the real email