I have a CMdTarget derived automation enabled class (call it DocClass).
I want to provide a method (say "Close")to this automation class which
How to do it?
"delete this" leads to assertion failure.
PS : My VB controller code reads like this:
Dim docs As DocCollection
Dim doc As DocClass
set DocCollection = Application.DocCollection
set doc = DocCollection.Item(1)
doc.Close '' I want this line to destroy "doc" object and
'' make it invalid object reference
'' HOW TO IMPLEMENT THIS???