How do I convert BSTR to CString?
Thnaks in advance...
Printable View
How do I convert BSTR to CString?
Thnaks in advance...
Cool...
Nevermind!!
I got it!!
It is nice to know that u found the answer yourself.
Why don't u share it with me.
Thanking you in advance
Suppose bstr is the BSTR to be converted. Then
CString str = (char*)bstr;
Simple, isn't it?
Santhosh
Well, Thank u.
How to convert CString to BSTR.
TIA
---
BSTR strNew ;
CString strTemp("Hello!");
strNew = strTemp.AllocSysString();
---