Today, 09:28 AM
Hi Stanley,
The following code
wouldn't it be better to use ObjPtr?
The following code
Code:
Class Method LongFromObj(o As IUnknown) As Long
If IsObject(o) Then
o.AddRef()
Method = Peek(Long, VarPtr(o))
End If
End Method
wouldn't it be better to use ObjPtr?
Code:
Class Method LongFromObj(o As IUnknown) As Long
If IsObject(o) Then
o.AddRef()
Method = ObjPtr(o) 'Peek(Long, VarPtr(o))
End If
End Method