C++
  Home arrow C++ arrow Building An Outlook COM Add-In With VC /A...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C++

Building An Outlook COM Add-In With VC /ATL
By: Amit Dey
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 54
    2002-02-17

    Table of Contents:
  • Building An Outlook COM Add-In With VC /ATL
  • Getting started
  • Building a minimal COM add-in
  • Command and conquer
  • Command and conquer (contd.)
  • Lord of the (disp) sinks
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building An Outlook COM Add-In With VC /ATL


    (Page 1 of 7 )

    One of the great things about Windows is the ability that we have to create COM-based add-in's for the entire suit of Office 2000 applications. In this article, Amit shows us how to create an Outlook 2000 COM add-in using a pure Visual C ATL COM object. He starts by writing a basic functional COM add-in, and then adds standard user interface elements such as toolbars and menu items to Outlook. He finishes up by showing us how to respond to their events.Just recently I developed an Outlook 2000 COM add-in as part of a CRM tool that I was creating. While coding the project, I thought that the details of a similar add-in would make a good topic for an article, especially since most of the Office related COM documentation that I found on the Internet was Visual Basic/VBA related and almost none related to VC++/ATL. The code in this article is not optimized and the general approach has been kept simple so that it's easier to follow.

    In this article, we will be looking at how to create an Outlook 2000 COM add-in using a pure Visual C++ ATL COM object. We will start out by writing a basic functional COM add-in, and then I will show you how to add standard user interface elements like toolbars and menu items to Outlook and how to respond to their events.

    Next, we will add our own property sheet for the add-in into Outlook's Tools -> Options menu. Along the way we'll see the relevant registry keys and also take a look at useful features of the ATL Wizards and learn how to use them effectively.

    Although we'll be writing an Outlook 2000 COM add-in, COM add-ins for other Office 2000 applications like Word, Access, etc can be built very similarly. There are only a handful of things that differentiate creating different add-ins for the different Office 2000 family of applications, like registry keys, for instance, however the basic fundamentals remain the same.

    In this article I will assume that you're a Visual C++ COM programmer, and have had some experience with ATL based component development and OLE/Automation, although this is not strictly necessary.

    To build and test the add-in, you must have Microsoft Office 2000 installed on your system, or at least Outlook 2000. The project code has been built with Visual C++ 6.0 SP3+/ATL3.0, and tested on Windows 2000 with Office 2000 installed.

    More C++ Articles
    More By Amit Dey


     

    C++ ARTICLES

    - Multiplying Large Numbers with Karatsuba`s A...
    - Large Numbers
    - Dijkstra`s Shunting Algorithm with STL and C...
    - Brief Introduction to the STL Containers
    - The Standard Template Library
    - Templates in C++
    - C++ Programmer Alerts
    - C++ Programming Tips
    - First Steps in (C) Programming, conclusion
    - First Steps in (C) Programming, continued
    - First Steps in (C) Programming, introduction
    - C++ Preprocessor: Always Assert Your Code Is...
    - C++ Preprocessor: The Code in the Middle
    - Programming in C
    - Temporary Variables: Runtime rvalue Detection







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway