ITEMCB DECLARE :Private gBaseClass As New OutAddIn,why?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hello
In itemcb example the gBaseClass declared as NEW in the ExplWrap class
I am a little bit confused I thought the OUTADDIN should be a single
instance?

10x
 
The declaration in the designer is private to that class module as are the
declarations in the wrapper classes. There is no problem in that.
 
But CLASS_INITALIZE is called several times for OUTADDIN because of NEW
uses.

10x
 
Since all declarations of gBaseClass are private to the modules where they
are declared that makes UnInitHandler available everywhere it might be
needed. I don't recall any code in ItemsCB in the class initialize or
terminate events so I don't see a problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top