Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 99201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:20:32+00:00 2026-05-11T00:20:32+00:00

I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure

  • 0

I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure whether this is the best way of doing COM Add-Ins but I cannot change that.

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

I need to perform the following operations:

  1. Load configuration data from file
  2. Load registry data
  3. Start new session
  4. Create *.pst file
  5. Subscribe to Explorer events
  6. Connect to Internet Server to get some data
  7. Create menu items in the main menu
  8. Create a toolbar
  9. Add/Remove several things in Outllok (on *.pst files level)

Please advise, what I am supposed to do when?

  • What I need to perform in OnConnection method?
  • What is allowed only when OnStartupComplete invokes?
  • What resources I need to free dispose during OnBeginShutdown / OnDisconnection?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:20:33+00:00Added an answer on May 11, 2026 at 12:20 am

    Note that 1,2 and 6 are not Outlook-addin-specific tasks.

    3 is not needed: As an addin you don’t create a session – you get connected with an existing one (by implementing the OnConnection method).

    For 4 and 9 I recommend using RDO: http://dimastr.com/redemption/ (can also be used for 3 if you really need another session)

    For 5,7 and 8 I recommend using ADX: http://www.add-in-express.com/add-in-net/
    (you won’t actually have to worry about IDTExtensibility2 at all anymore if you do this)

    OnConnection is where you grab your reference to the Application interface from which you can derive everything else.

    OnStartupComplete is where you can put all your initialization code.

    OnDisconnection is where you should release all remaining OOM references you may have accumulated during the session, i.e everything that was derived from the initial Application reference that you received via OnConnection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer the basic paradigm with wicket+ioc is: most dependencies should be… May 11, 2026 at 10:00 am
  • added an answer Quick fix in PgAdmin: just create another empty database. Select… May 11, 2026 at 10:00 am
  • added an answer The identity value is assigned to the inserted object just… May 11, 2026 at 10:00 am

Related Questions

I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure
I am implementing a HttpRequestValidationException in my Application_Error Handler, and if possible, I want
I am implementing exception handling for our BizTalk services, and have run into a
I am implementing a quite simple state-machine order processing application. It is a e-commerce
I am implementing a comment control that allows a person to select comments and
I am implementing a design that uses custom styled submit-buttons. They are quite simply
I am implementing NHibernate into an existing web application. However, we have some other
I am implementing a very simple file database. I have 2 basic operations: void
I am implementing a tagging system on my website similar to one stackoverflow uses,
I am implementing web services for a PHP application and am trying to understand

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.