Click here to Skip to main content
15,892,674 members
Articles / Desktop Programming / ATL

Building an Office2K COM addin with VC++/ATL

Rate me:
Please Sign up or sign in to vote.
4.95/5 (110 votes)
30 Apr 200320 min read 1.6M   5.1K   224  
This article shows how to program an Outlook2000/2K+ COM addin using a pure ATL COM object.
/* this file contains the actual definitions of */
/* the IIDs and CLSIDs */

/* link this file in with the server and any clients */


/* File created by MIDL compiler version 5.01.0164 */
/* at Sun Feb 10 16:49:42 2002
 */
/* Compiler settings for C:\CODE\OFFICEADDIN\OutlookAddin\OutlookAddin.idl:
    Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@MIDL_FILE_HEADING(  )
#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
{
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED

const IID IID_IAddin = {0xF8608145,0xBB5A,0x4A5A,{0xAE,0x7E,0x24,0x4C,0x6E,0x02,0x80,0x93}};


const IID IID_IPropPage = {0xC76C5E4D,0xFDFF,0x4756,{0xB9,0x25,0xB2,0x98,0x17,0xCE,0x62,0x88}};


const IID IID_ILitePage = {0x067CA4E2,0x556E,0x47DD,{0x9E,0xFA,0xAD,0xAA,0xBB,0x2C,0x0D,0x95}};


const IID LIBID_OUTLOOKADDINLib = {0xEDDBDEA4,0x5C07,0x453F,{0xBE,0x8C,0x81,0xD7,0x38,0x98,0x43,0x81}};


const CLSID CLSID_Addin = {0xC704648D,0x6030,0x47E9,{0xAD,0xBA,0x1E,0x13,0xB6,0xA7,0x84,0xAE}};


const CLSID CLSID_PropPage = {0xBE1A7148,0x9F02,0x40F9,{0xAB,0x5A,0x5A,0xD4,0xE7,0xD1,0x1E,0x62}};


const CLSID CLSID_LitePage = {0x21881BCB,0x9F1E,0x42CE,{0xBD,0x5B,0xED,0x0E,0x13,0x37,0x9A,0x54}};


#ifdef __cplusplus
}
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Amit Dey is a freelance programmer from Bangalore,India. Chiefly programming VC++/MFC, ATL/COM and PocketPC and Palm platforms. Apart from programming and CP, he is a self-taught guitar and keyboard player.

He can be contacted at visualcdev@hotmail.com


Comments and Discussions