MFC program error in VC++

C:\Documents and Settings\user\Desktop\CMC Production\ReadOM\ReadOMDlg.cpp(188) : error C2664: 'bool __thiscall OrderManager::GetMsg(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class cmc::IMessage
*& )' : cannot convert parameter 1 from 'class CString' to 'const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &'
Reason: cannot convert from 'class CString' to 'const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous

WHAT THIS ERROR SIGNIFY AND HOW IT COULD BE SOLVED??
Last edited on
You have an object of type "CString" and you are trying to convert it to an std::string, which you can't do.
You should use:
CString strValue;
strValue.GetBuffer();
Topic archived. No new replies allowed.