|
-
April 13th, 1999, 07:35 AM
#1
Convert COleVariant to CString
How do I convert a COleVariant to CString?
Thanks in advance
-
April 13th, 1999, 08:19 AM
#2
Re: Convert COleVariant to CString
Try this!
COleVariant var1;
VARIANT var2;
CString str;
var2 = (LPVARIANT)var1;
if (var2.vt == VT_UI1)
str = var2->pbVal;
else if (var2.vt == VT_BSTR)
str = var2->bstrVal;
Hope for help. 
And give other people a hand as well!
Walter
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
|