Changeset 267 for Include/com/variant.ab
- Timestamp:
- Jun 2, 2007, 6:53:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/com/variant.ab
r211 r267 7 7 #require <oleauto.ab> 8 8 #require <com/index.ab> 9 10 Namespace ActiveBasic 11 Namespace COM 9 12 10 13 Class Variant … … 376 379 377 380 Override Function ToString() As String 378 Dim tmp = ChangeType(VT_BSTR )381 Dim tmp = ChangeType(VT_BSTR, VARIANT_ALPHABOOL) 379 382 Dim bs = ((tmp.v.val As ULONG_PTR) As BSTR) 380 383 Return New String(bs As PCWSTR, SysStringLen(bs) As Long) … … 534 537 Const Function ValStr() As BString 535 538 Dim r As VARIANT 536 ChangeType(r, 0, VT_BSTR)539 ChangeType(r, VARIANT_ALPHABOOL, VT_BSTR) 537 540 Dim bs = New BString 538 541 bs.Attach(GetPointer(VarPtr(r.val)) As BSTR) … … 634 637 */ 635 638 639 End Namespace 'COM 640 End Namespace 'ActiveBasic 641 636 642 #endif '_COM_VARIANT_AB
Note:
See TracChangeset
for help on using the changeset viewer.