XLL+ Class Library (7.0)

CXlHandleStore<T, S>::ObjectFromHandle

Convert a handle to an object pointer

T* ObjectFromHandle(
   long handle
) const;



An object handle, usually passed to an add-in function from a worksheet cell.

Return Value

If the handle is valid, then the function returns a pointer to the object it represents. If the handle is not valid, the function returns 0.


Header: xlhandle.h

See Also

CXlHandleStore<T, S> Class | CXlHandleStore<T, S> Methods