Changeset 267 for Include/com/variant.ab


Ignore:
Timestamp:
Jun 2, 2007, 6:53:34 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

COM関係を名前空間に入れた

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/com/variant.ab

    r211 r267  
    77#require <oleauto.ab>
    88#require <com/index.ab>
     9
     10Namespace ActiveBasic
     11Namespace COM
    912
    1013Class Variant
     
    376379
    377380    Override Function ToString() As String
    378         Dim tmp = ChangeType(VT_BSTR)
     381        Dim tmp = ChangeType(VT_BSTR, VARIANT_ALPHABOOL)
    379382        Dim bs = ((tmp.v.val As ULONG_PTR) As BSTR)
    380383        Return New String(bs As PCWSTR, SysStringLen(bs) As Long)
     
    534537    Const Function ValStr() As BString
    535538        Dim r As VARIANT
    536         ChangeType(r, 0, VT_BSTR)
     539        ChangeType(r, VARIANT_ALPHABOOL, VT_BSTR)
    537540        Dim bs = New BString
    538541        bs.Attach(GetPointer(VarPtr(r.val)) As BSTR)
     
    634637*/
    635638
     639End Namespace 'COM
     640End Namespace 'ActiveBasic
     641
    636642#endif '_COM_VARIANT_AB
Note: See TracChangeset for help on using the changeset viewer.