Hi,
There is currently no built-in support for object handles of this type
in Excel-Dna. There have been a few discussions about this in the
group - you might search for 'object handle' or 'object handler'.
It is not too hard to build a simple object system yourself - you make
an object store and have a scheme for managing handles which are
passed back and forth. Typically lifetime management becomes an issue
(how do you know when to delete an object?). With the recent addition
of RTD support in Excel-Dna, I think the right plumbing is now in
place to do object handles properly, since the Excel reliably notifies
the RTD server when a topic is no longer referenced. You might look
through the RTD-related messages that have been posted to the group, I
remember one RTD-based object example, though not quite doing what you
talk about.
Over the long term I expect something like this to find its way into
the Excel-Dna Runtime itself, but it is likely to follow having a good
user-level implementation tried out first.
Regards,
Govert