Ignore:
Timestamp:
Sep 18, 2007, 12:10:41 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

SPrintF関連の追加。関数FloatToChars, FormatFloatE, FormatIntegerUと列挙体FormatFlags。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/com/variant.ab

    r267 r335  
    44#define _COM_VARIANT_AB
    55
    6 #require <oaidl.ab>
    7 #require <oleauto.ab>
     6'#require <oaidl.ab>
     7'#require <oleauto.ab>
    88#require <com/index.ab>
    99
     
    127127        v.vt = VT_EMPTY
    128128    End Sub
    129 
     129/*
    130130    Sub Operator =(y As Variant)
    131131        Assign(y.v)
     
    135135        Assign(y)
    136136    End Sub
    137 
     137*/
    138138    Sub Assign(from As Variant)
    139139        Assign(from.v)
     
    202202    Const Function Operator \(y As Variant) As Variant
    203203        Dim ret = New Variant
    204         VarIDiv(This.v, y.v, ret.v)
     204        VarIdiv(This.v, y.v, ret.v)
    205205        Return ret
    206206    End Function
     
    340340    Const Function Operator <=(y As Variant) As Boolean
    341341        Dim c = Compare(This, y)
    342         If result = VARCMP_LT Or result = VARCMP_EQ Then
     342        If c = VARCMP_LT Or c = VARCMP_EQ Then
    343343            Return True
    344344        Else
     
    349349    Const Function Operator >=(y As Variant) As Boolean
    350350        Dim c = Compare(This, y)
    351         If result = VARCMP_GT Or result = VARCMP_EQ Then
     351        If c = VARCMP_GT Or c = VARCMP_EQ Then
    352352            Return True
    353353        Else
     
    391391    Const Function ValUI1() As Byte
    392392        Dim r = ChangeType(VT_UI1)
    393         Return GetByte(VarPtr(r.val))
     393        Return GetByte(VarPtr(r.v.val))
    394394    End Function
    395395
     
    402402    Const Function ValUI2() As Word
    403403        Dim r = ChangeType(VT_UI2)
    404         Return GetWord(VarPtr(r.val))
     404        Return GetWord(VarPtr(r.v.val))
    405405    End Function
    406406
     
    413413    Const Function ValUI4() As DWord
    414414        Dim r = ChangeType(VT_UI4)
    415         Return GetDWord(VarPtr(r.val))
     415        Return GetDWord(VarPtr(r.v.val))
    416416    End Function
    417417
     
    424424    Const Function ValUI8() As QWord
    425425        Dim r = ChangeType(VT_UI8)
    426         Return GetQWord(VarPtr(r.val))
     426        Return GetQWord(VarPtr(r.v.val))
    427427    End Function
    428428
     
    501501    Const Function ValBool() As VARIANT_BOOL
    502502        Dim r = ChangeType(VT_BOOL)
    503         Return GetWord(VarPtr(r.val))
     503        Return GetWord(VarPtr(r.v.val))
    504504    End Function
    505505
     
    557557    Sub ValUnknown(x As *IUnknown)
    558558        Clear()
    559         SetPointer(VarPtr(v.val), x.Copy())
     559        SetPointer(VarPtr(v.val), x)
    560560        x->AddRef()
    561561        v.vt = VT_UNKNOWN
Note: See TracChangeset for help on using the changeset viewer.