05.09.2025, 09:28
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 Methodwouldn'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