|
-
Nov 7th, 2002, 06:58 AM
#1
Thread Starter
Junior Member
Type conversion
What is the easiest way to convert a BSTR to a CString?
-
Nov 7th, 2002, 12:46 PM
#2
Frenzied Member
You can easily conver BSTR to CString and backwards
Code:
BSTR bstr;
CString str = (LPCWSTR)bstr;
-
Nov 7th, 2002, 02:47 PM
#3
Backwards:
Code:
CString str("Hello there!");
BSTR bstr = str.SysAllocString();
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 8th, 2002, 03:58 AM
#4
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|