XLL+ Class Library (7.0)

CXlHandleStore<T, S>::AddObjectHandle

Convert an object pointer to a handle

long AddObjectHandle(
   T* value
);

Parameters

value

A pointer to an object, usually created by an add-in function.

Return Value

The function returns a handle that represents the object, and which can be used later as a parameter to ObjectFromHandle().

Remarks

The function adds the object pointer to the handle store, which is thereafer in control of the object's lifetime.

Requirements

Header: xlhandle.h

See Also

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