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

Related Questions

I followed the tutorial on https://dev.twitter.com/docs/auth/implementing-sign-twitter to use OAuth on my homepage. Everything worked
This is not exactly a straight-out question because I have just solved it, but
I'm following this tutorial here: http://brenelz.com/blog/implementing-paging-using-php-and-jquery/ Here is what I have: http://eataustineat.com/testingfolder/ I've encountered
I'm following this guide to add an actionbar SearchView widget to my activity: http://developer.android.com/training/search/setup.html
Trying to add public methods to this slider I purchased but have little knowledge
I'm implementing an API using authentication based on this article: http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/ And this related
I am a novice at implementing jQuery add ons. I'd like to use editable
I am trying to implementing plot graphs using the link. http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application But as for
I am implementing IQueryCancelAutoPlay COM interface and registering it with the Running Objects Table
I did a quick google on implementing clone() in Java and found: http://www.javapractices.com/topic/TopicAction.do?Id=71 It

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.