How to properly implement the IDTExtensibility2 interface for the Office COM add-in?

I am implementing a COM add-in for Outlook. I am using IDTExtensibility2. I'm not sure if this is the best way to do COM add-ins, but I can't change this.

This interface defines five methods: OnConnection, OnStartupComplete, OnAddInsUpdate, OnBeginShutdown, OnDisconnection.

I need to perform the following operations:

  • Loading configuration data from a file
  • Download registry data
  • Start new session
  • Create * .pst file
  • Subscribe to Explorer events
  • Connect to an Internet server to get some data.
  • Creating menu items in the main menu
  • Create Toolbar
  • Add / remove several things in Outllok (at the * .pst file level)

Please advise what should I do when?

  • OnConnection?
  • OnStartupComplete?
  • OnBeginShutdown/OnDisconnection?
+3
1

, 1,2 6 , Outlook-addin.

3 : - ( OnConnection).

4 9 RDO: http://dimastr.com/redemption/ ( 3, )

5,7 8 ADX: http://www.add-in-express.com/add-in-net/
( IDTExtensibility2, )

OnConnection - , Application, .

OnStartupComplete - .

OnDisconnection - , OOM, , , , .. , Application, OnConnection.

+3

All Articles