Hello,
I assume, you build in Unicode (because ANSI does not make sense in my opinion).
So CString is a CStringW. std::string is always of type char. You should convert the CStringW to std::wstring. Read the documentation: basic_string
If this is not the case: as others have already mentioned before, give us a short example what you want to do.
Regards, Guido