Changeset 335 for trunk/Include/com/variant.ab
- Timestamp:
- Sep 18, 2007, 12:10:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/com/variant.ab
r267 r335 4 4 #define _COM_VARIANT_AB 5 5 6 #require <oaidl.ab>7 #require <oleauto.ab>6 '#require <oaidl.ab> 7 '#require <oleauto.ab> 8 8 #require <com/index.ab> 9 9 … … 127 127 v.vt = VT_EMPTY 128 128 End Sub 129 129 /* 130 130 Sub Operator =(y As Variant) 131 131 Assign(y.v) … … 135 135 Assign(y) 136 136 End Sub 137 137 */ 138 138 Sub Assign(from As Variant) 139 139 Assign(from.v) … … 202 202 Const Function Operator \(y As Variant) As Variant 203 203 Dim ret = New Variant 204 VarI Div(This.v, y.v, ret.v)204 VarIdiv(This.v, y.v, ret.v) 205 205 Return ret 206 206 End Function … … 340 340 Const Function Operator <=(y As Variant) As Boolean 341 341 Dim c = Compare(This, y) 342 If result = VARCMP_LT Or result= VARCMP_EQ Then342 If c = VARCMP_LT Or c = VARCMP_EQ Then 343 343 Return True 344 344 Else … … 349 349 Const Function Operator >=(y As Variant) As Boolean 350 350 Dim c = Compare(This, y) 351 If result = VARCMP_GT Or result= VARCMP_EQ Then351 If c = VARCMP_GT Or c = VARCMP_EQ Then 352 352 Return True 353 353 Else … … 391 391 Const Function ValUI1() As Byte 392 392 Dim r = ChangeType(VT_UI1) 393 Return GetByte(VarPtr(r.v al))393 Return GetByte(VarPtr(r.v.val)) 394 394 End Function 395 395 … … 402 402 Const Function ValUI2() As Word 403 403 Dim r = ChangeType(VT_UI2) 404 Return GetWord(VarPtr(r.v al))404 Return GetWord(VarPtr(r.v.val)) 405 405 End Function 406 406 … … 413 413 Const Function ValUI4() As DWord 414 414 Dim r = ChangeType(VT_UI4) 415 Return GetDWord(VarPtr(r.v al))415 Return GetDWord(VarPtr(r.v.val)) 416 416 End Function 417 417 … … 424 424 Const Function ValUI8() As QWord 425 425 Dim r = ChangeType(VT_UI8) 426 Return GetQWord(VarPtr(r.v al))426 Return GetQWord(VarPtr(r.v.val)) 427 427 End Function 428 428 … … 501 501 Const Function ValBool() As VARIANT_BOOL 502 502 Dim r = ChangeType(VT_BOOL) 503 Return GetWord(VarPtr(r.v al))503 Return GetWord(VarPtr(r.v.val)) 504 504 End Function 505 505 … … 557 557 Sub ValUnknown(x As *IUnknown) 558 558 Clear() 559 SetPointer(VarPtr(v.val), x .Copy())559 SetPointer(VarPtr(v.val), x) 560 560 x->AddRef() 561 561 v.vt = VT_UNKNOWN
Note:
See TracChangeset
for help on using the changeset viewer.