XLL+ Class Library

CXlHandleStore<T, S>::ObjectFromHandle

Convert a handle to an object pointer

[C++]
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