Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM
Message
From
27/09/1999 00:49:44
 
 
To
26/09/1999 23:34:20
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00269140
Message ID:
00269196
Views:
24
BSTR is the type used in VC++ (and idl) for strings. Its declaration in C++ is:

typedef OLECHAR* BSTR;

MSDN defines BSTR as "A length-prefixed string used by Automation data manipulation functions."

BSTRs are UNICODE strings.

If you need to have strings in a VC++ COM object, then it has to be BSTR.

Vlad

>I haven't gotten into it in detail, but I have been told that the C++ functions that operate on BSTR data types assume NUL terminated strings. Have you found alternatives to this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform