Looks like VC++ cannot convert automatically from string to CString as I get some error message.
Cf below for extract of the code as well as the error message.
m_HkdRunTime = CashOrSwap;
C:\TADS\TADS\DPRMYLDHKDdlg.cpp(395) : error C2679: binary '=' : no
operator defined which takes a right-hand operand of type 'class
std::allocator<char>>' (or there is no acceptable conversion)
Can anyone tell me how to convert from string to CString?