XLL+ Class Library (6.3)

HandleCache<T>::HandleToPtr

Converts a handle to a pointer to T.

bool HandleToPtr(
   const CString& handle,
   T*& ptr
);

Parameters

handle

A handle, as displayed in an Excel cell.

ptr

If the conversion succeeds, and the handle refers to a valid object, then ptr will be set to point to the object.

Return Value

Returns true if the conversion succeeded, or false if the handle could not be successfully parsed, or referred to an invalid object.

Requirements

Header: rtdhandles.h

See Also

HandleCache<T> Class | HandleCache<T> Methods