Hi to all!
I have a problem with converting a string of text in the clipboard to a CString. My erroneous code looks like this:
===========================
OpenClipboard();
HANDLE clipTxt = GetClipboardData(CF_TEXT);
//append to a CString
m_searchPath += reinterpret_cast<const char*>(clipTxt);
=============================
I dont get a valid CString after the appending.
Anyone please show me how to do it properly?
Thanks.