What is the easiest way to convert a BSTR to a CString?
Printable View
What is the easiest way to convert a BSTR to a CString?
You can easily conver BSTR to CString and backwards
Code:BSTR bstr;
CString str = (LPCWSTR)bstr;
Backwards:
Code:CString str("Hello there!");
BSTR bstr = str.SysAllocString();
Thanks.