|
-
December 31st, 2003, 07:20 AM
#1
BSTR*
Hello,
I'm allocating a BSTR* like that:
//-------------------------------------------------------------
BSTR* bstr
*bstr = SysAllocStringByteLen(sStlStr.c_str(),(unsigned int)sStlStr.length());
//sStlStr is std::string holding a string
//----------------------------------------------------------------
now when I look at the bstr at the debugger, that's what I see something that look like that (that's only part of the string, this is a very long one):
㔷㔮䐼呅䥁卌‽‧***************?‧癮㴠✠‧慢敳灟捲㴠✠‧慶畬‽ㄧ㈱㤬㜸‧潣瑳㴠✠‧潣瑳损杮灟湣
this bstr* is an out parameter for and the function is actually called by a VB client, the VB get this BSTR* as a string of ?
(pleny of them)
My question: how can I see the bstr* normally (with the same value as the stl::string)
I must use bstr* because as I said this code is part of a C++ function that is called from a VB client....
thanks
avi
Last edited by avi123; December 31st, 2003 at 07:25 AM.
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
|