Is ComObjValue the same as comobj.ptr? Topic is solved
Is ComObjValue the same as comobj.ptr?
Is ComObjValue the same as retrieving the pointer via comobj.ptr? It seems rather redundant.
Re: Is ComObjValue the same as comobj.ptr? Topic is solved
its meant for IDispatch wrapped objects iirc(where .Ptr would be trying to invoke a property that likely doesnt exist)
Re: Is ComObjValue the same as comobj.ptr?
This is explicitly documented, including the purpose of the redundancy, the more restrictive conditions which set Ptr apart from ComObjValue, and the additional capability of Ptr not supported by ComObjValue.
https://lexikos.github.io/v2/docs/commands/ComValue.htm#Ptr
Edit: It's not meant for IDispatch wrapped objects, and does not function with VT_DISPATCH. It is meant for non-IDispatch derived interfaces (but also valid for VT_BYREF and VT_ARRAY).
https://lexikos.github.io/v2/docs/commands/ComValue.htm#Ptr
Edit: It's not meant for IDispatch wrapped objects, and does not function with VT_DISPATCH. It is meant for non-IDispatch derived interfaces (but also valid for VT_BYREF and VT_ARRAY).
Who is online
Users browsing this forum: No registered users and 90 guests