XLL+ Class Library (6.3)

HandleCache<T>::SetFormatter

Sets the specified formatter object to be the formatter for all handles in this cache.

int SetFormatter(
   CHandleFormatter<T>* formatter
);

Parameters

formatter

A pointer to an object derived from CHandleFormatter<T>*.

Remarks

Once the object has been passed to SetFormatter(), the object is owned by the HandleCache, and will be deleted by it at the appropriate time. The developer should not delete instances of formatters that have been passed to SetFormatter(). The developer should not create instances of formatters on the stack; they must be created on the heap, using new.

Requirements

Header: rtdhandles.h

See Also

HandleCache<T> Class | HandleCache<T> Methods