United States*
Microsoft.com Home|Site Map
Microsoft*
Search Microsoft.com for:
Help and Support 
|Select a Product|Search Knowledge Base

How to create a COM Add-in for Outlook 2002

Article ID:291163
Last Review:November 19, 2005
Revision:2.1
This article was previously published under Q291163
For a Microsoft Outlook 2000 version of this article, see 230225 (http://support.microsoft.com/kb/230225/).

SUMMARY

This article provides an overview of how to create a COM add-in for Microsoft Outlook.

MORE INFORMATION

Overview

COM add-ins are an Office feature that was first implemented in Microsoft Office 2000. The architecture is supported by all Office programs, including Outlook. Key benefits of COM add-ins include:
COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications.
The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture.
You can create one COM add-in to use with more than one Office program.
IMPORTANT: There are no changes to the COM add-in architecture from Outlook 2000 to Outlook 2002. Many of the links and resources in this article are for Outlook 2000, but are still applicable to Outlook 2002. This article will be updated once Outlook 2002-specific resources are finalized.

What You Need to Create a COM Add-in

In addition to Outlook, you need one of the following development environments to create a COM add-in for Office or Outlook:
Visual Basic 5.0 or later (Visual Basic 6.0 is preferred)
Microsoft Office Developer, which includes the ability to compile a Visual Basic for Applications project into a Dynamic Link Library (DLL)
Any other COM-compliant development environment, such as Microsoft Visual C++ or Microsoft Visual J++

Resources and Examples

There are many resources and examples about how to implement an Office or Outlook COM add-in.

Outlook-Specific Information

COM Add-ins Part I: Introducing an Office 2000 Solution for the Entire (Office) Family:
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/msotrcom.htm (http://msdn.microsoft.com/library/default.asp?URL=/library/techart/msotrcom.htm)
COM Add-ins Part II: Building a COM Add-in for Outlook 2000:
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/trcomad.htm (http://msdn.microsoft.com/library/default.asp?URL=/library/techart/trcomad.htm)
Sample chapter from "Professional Outlook 2000 Programming:"
http://www.cdolive.com/prool2k.htm (http://www.cdolive.com/prool2k.htm)
COM Add-in Information from the Slipstick Systems Web site:
http://www.slipstick.com/dev/comaddins.htm (http://www.slipstick.com/dev/comaddins.htm)

General COM Add-in Information

Microsoft Office 2000/Visual Basic Programmer's Guide
Chapter 11: Add-ins, Templates, Wizards, and Libraries:
http://msdn.microsoft.com/library/default.asp?URL=/library/officedev/odeopg/deovraddinstemplateswizardslibraries.htm (http://msdn.microsoft.com/library/default.asp?URL=/library/officedev/odeopg/deovraddinstemplateswizardslibraries.htm)
Developing COM Add-Ins for Microsoft Office 2000:
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/comaddins.htm (http://msdn.microsoft.com/library/default.asp?URL=/library/techart/comaddins.htm)
Creating a Microsoft Office 2000 COM Add-in:
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/mso2kaddin.htm (http://msdn.microsoft.com/library/default.asp?URL=/library/techart/mso2kaddin.htm)
Microsoft Knowledge Base Articles
238228 (http://support.microsoft.com/kb/238228/) How To Build an Office 2000 COM Add-In in Visual Basic
230689 (http://support.microsoft.com/kb/230689/EN-US/) SAMPLE: Comaddin.exe Office 2000 COM Add-In Written in Visual C++
254006 (http://support.microsoft.com/kb/254006/EN-US/) INFO: Access Data Retrieval Sample Add-In Available for Download
232680 (http://support.microsoft.com/kb/232680/EN-US/) FP2000: How to Work With COM Add-ins in FrontPage 2000

Important Things to Know About Outlook

The following Microsoft Knowledge Base articles provide information about the key things that you should be aware of when you develop a COM add-in for Outlook:

294867 (http://support.microsoft.com/kb/294867/EN-US/) OL2002: You Cannot Fully Quit Outlook When You Use a COM Add-in
291166 (http://support.microsoft.com/kb/291166/EN-US/) OL2002: All COM Add-in Run-Time Errors Must Be Trapped
292182 (http://support.microsoft.com/kb/292182/EN-US/) OL2002: CommandBars Not Available from Application Object

REFERENCES

For additional information about available resources and answers to commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:
287530 (http://support.microsoft.com/kb/287530/EN-US/) OL2002: Questions About Custom Forms and Outlook Solutions

APPLIES TO
Microsoft Outlook 2002 Standard Edition
Keywords: 
kbaddin kbhowto KB291163

Article Translations

 

Related Support Centers

Outlook 2002

Other Support Options

Contact Microsoft
Phone Numbers, Support Options and Pricing, Online Help, and more.
Customer Service
For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups
Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.

©2006 Microsoft Corporation. All rights reserved. Terms of Use |Trademarks |Privacy Statement