|
-
May 14th, 1999, 08:44 AM
#1
Is OLE2CT valid when used with BSTR
I am using BSTRs in my application in several places. In some situations I want to go back and forth between BSTRS and LPCTSTRs to go from BSTR to LPCTSTR I use the macro OLE2CT. Is this the correct macro to use for this conversion? Or does this not apply to BSTRs
-
May 14th, 1999, 09:57 AM
#2
Re: Is OLE2CT valid when used with BSTR
A BSTR is simply an OLECHAR* with a prepended size. In other words, you can treat a BSTR as an OLECHAR* just not the other way around.
So, you can use any of the OLE2xxx conversion macros on a BSTR.
-- Matt
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
|