Very Fast WString /Object Hash Table (Comments)
#4
Hi Stanley,

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
Reply


Messages In This Thread
RE: Very Fast WString /Object Hash Table (Comments) - by Steven Pringels - Today, 09:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)