|
-
May 19th, 1999, 04:57 PM
#3
Re: BSTR Blues
Watch out for [out] IDL notation.
You'll need to pass addres of placeholder types.
BSTR bname = NULL;
// from CString
bname = cstringname.AllocSysString();
psecuredptr->Login( bname );
NOTE: for a return value
BSTR bname = NULL;
psomeCOMptr->GetBstrval( &bname );
CString name = bname;
Like wise of long's
long lval;
psomeBinCOMCall->GetLong( &lval );
This '&' (address of operator) means a location
in memory to place the result.
Try it.
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
|