Shared COM add-in Outlook 2003

K

KG

Hey all,

I've been experiencing some trouble with my add-in for outlook.. (actually
for all the office programs Excel, word and powerpoint as well , but no
problems with them though.. only Outlook acting up..)

My add-in uses ODP.net to connect to a Oracle database. On addin connect, I
add a new event for the NewInspector event. This event adds a couple of
buttons to the menu of a mailitem inspector. Wehn clicking one of the
buttons, a conneciton to the database is made...

My problem is that sometimes after I've connected to the database, I cannot
right-click a mailitem in outlook main window.. everything else seems to work
nicely, but rightclicking gives nothing.. no error or anyting.

A few versions ago, I had a test of the database connection on the Add-in
connect event. This made the rightclick menu unavailable all the time.. also
this gave me an error when accessing the address book. Removing the test of
db connection solved both problems, or so I thought. For now the unavailable
rightclick is back.

Any ideas would be greatly appreciated...

--kg



Edit: I realize I didn't mention any versions.. I'm using Office 2003,
VS.net 2005, ODP.net 2.0, Oracle10g and all this is running in winXP.
 
K

Ken Slovak - [MVP - Outlook]

Does that connection open any forms, possibly modally? If not there's no
real way to know what's going on unless someone has that same connector to
Oracle. See if Oracle has any information about it, or possibly you might
want to investigate other ways of talking to Oracle, possibly using a Web
service.

One thing I've seen in my experience is that Outlook addins don't really
like being shared in one DLL with addins for other Office products. I always
combine Word/Excel/PPT addins into one DLL but always keep my Outlook addins
completely separate.
 

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