|
-
June 2nd, 1999, 04:34 PM
#1
quick BSTR copy question
hey,
ive never worked with bstr before and the only thing i know about them is that they are unsigned shorts. how do i copy one bstr to another bstr?
thanks
L5
-
June 2nd, 1999, 05:34 PM
#2
Re: quick BSTR copy question
There are some API calls to do this, but if you are new to them check out the following classes.
In ATL - CComBSTR,
In COM - _bstr_t
Check it out,
Wayne
-
June 3rd, 1999, 01:10 AM
#3
Re: quick BSTR copy question
Just another thing:
BitStrings are length preceeded (in a wrapper pointer in general at *p-1, and in VC++ 0 terminated (but i'm not sure about VB). So use SysAllocString and SysFreeString to allocate / free properly.
geeThings
chrislaw
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
|