Multiple Explorer Problem

E

eCN

I have created the command button in vb6 using Add-in.
I have registered it using "regsvr32"

When I Run first instance of "OUTLOOK.EXE" it contains the Command Button ,But
when I run the second instance of "OUTLOOK.EXE" without closing the first
instance
the command Button doesnot appear.

I need to display the command button in all instance of "outlook" like the
button of the antivirus which is displayed in all instance.

Please Help me I cannot understand why it is not displayed ?
 
K

Ken Slovak - [MVP - Outlook]

Only 1 instance of Outlook can run at a time. If any more are shown in the
Task Manager then they are hung instances.

If you mean opening more than 1 Explorer at a time you need to set up an
Explorer wrapper class and keep each class instance in a collection to keep
it alive. Each instance would instantiate any buttons/toolbars for its own
Explorer, using a unique Tag property for each so each fires the Click event
only in its own class.

See the ItemsCB COM addin template (VB 6) on the Resources page at
www.microeye.com for an example of how to do this as well as how to handle
various Outlook addin common bugs.
 
E

eCN

Well Thanks for the solution
But the problem is still confusing me.
I had view the code of the ItemsCB example which you have mentioned in
previous reply.
when I run the example the CDO 1.21 Library is Missing.
I cannot implement this code in my Outlook Add-in code as i had not used it.

Please give me the right path or source (or explain ) what should i
implement in my code.
Please give me reply

Thanks
 
E

eCN

eCN said:
Well Thanks for the solution
But the problem is still confusing me.
I had view the code of the ItemsCB example which you have mentioned in
previous reply.
when I run the example the CDO 1.21 Library is Missing.
I cannot implement this code in my Outlook Add-in code as i had not used it.

The Outlook exe in the taskbar is displaying only 1 instance and when I close any instance of outlook or current instance of outlook (from the File-Exit) the multiple Outlook window is closed
Please give me the right path or source (or explain ) what should i
implement in my code.
Please give me reply

Thanks
 
K

Ken Slovak - [MVP - Outlook]

You can use the CDO code parts if you want or just cut them out of the
template. CDO 1.21 is an optional installation for Office 2000 and later and
can be installed from the Office CD. The project reference you would need
would be to CDO.DLL, not one of the other CDO's.
 

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

Top