XLL+ Class Library (6.3)

CXlHandleStore<T, S>::ObjectFromHandle

Convert a handle to an object pointer

T* ObjectFromHandle(
   long handle
) const;

Parameters

handle

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.

Requirements

Header: xlhandle.h

See Also

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