Changeset 200 for Include/com/vbobject.ab
- Timestamp:
- Apr 2, 2007, 11:55:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/com/vbobject.ab
r192 r200 34 34 pdisp = obj.pdisp 35 35 pdisp->AddRef() 36 End Sub37 38 Sub Operator =(ByRef obj As VBObject)39 ~VBObject()40 VBObject(obj)41 36 End Sub 42 37 … … 206 201 End Function 207 202 208 Function Call(arg1 As Variant) As Variant 209 Return Call(1, arg1.PtrToVariant) 210 End Function 211 212 Function Call(ByRef arg1 As Variant, ByRef arg2 As Variant) As Variant 213 Dim arg[1] As VARIANT 214 215 Return Call(2, VarPtr(arg1) As *VARIANT) 216 End Function 217 203 Function Call(arg0 As Variant) As Variant 204 Return Call(1, arg0.PtrToVariant) 205 End Function 206 207 Function Call(arg0 As Variant, arg1 As Variant) As Variant 208 Dim arg[ELM(2)] As VARIANT 209 arg[0] = arg0.Copy() 210 arg[1] = arg1.Copy() 211 Return Call(2, arg) 212 End Function 213 214 Function Call(arg0 As Variant, arg1 As Variant, arg2 As Variant) As Variant 215 Dim arg[ELM(3)] As VARIANT 216 arg[0] = arg0.Copy() 217 arg[1] = arg1.Copy() 218 arg[2] = arg2.Copy() 219 Return Call(3, arg) 220 End Function 221 222 Function Call(arg0 As Variant, arg1 As Variant, arg2 As Variant, arg3 As Variant) As Variant 223 Dim arg[ELM(4)] As VARIANT 224 arg[0] = arg0.Copy() 225 arg[1] = arg1.Copy() 226 arg[2] = arg2.Copy() 227 arg[3] = arg3.Copy() 228 Return Call(4, arg) 229 End Function 230 231 /* 232 Function Call(arg0 = Variant.OptionalParam As Variant, arg1 = Variant.OptionalParam As Variant, 233 arg2 = Variant.OptionalParam As Variant, arg3 = Variant.OptionalParam As Variant, 234 arg4 = Variant.OptionalParam As Variant, arg5 = Variant.OptionalParam As Variant, 235 arg6 = Variant.OptionalParam As Variant, arg7 = Variant.OptionalParam As Variant, 236 arg8 = Variant.OptionalParam As Variant, arg9 = Variant.OptionalParam As Variant) As Variant 237 Dim arg[ELM(10)] As VARIANT 238 arg[0] = arg0.Copy() 239 arg[1] = arg1.Copy() 240 arg[2] = arg2.Copy() 241 arg[3] = arg3.Copy() 242 arg[4] = arg3.Copy() 243 arg[5] = arg4.Copy() 244 arg[6] = arg5.Copy() 245 arg[7] = arg6.Copy() 246 arg[8] = arg7.Copy() 247 arg[9] = arg8.Copy() 248 Return Call(10, arg) 249 End Function 250 */ 218 251 Private 219 252 Sub setProp(ByRef arg As VARIANT, callType As Word)
Note:
See TracChangeset
for help on using the changeset viewer.