Convert an object pointer to a handle
long AddObjectHandle( T* value );
A pointer to an object, usually created by an add-in function.
The function returns a handle that represents the object, and which can be used later as a parameter to ObjectFromHandle().
The function adds the object pointer to the handle store, which is thereafer in control of the object's lifetime.