Click here to Skip to main content
15,891,749 members
Articles / Desktop Programming / ATL

An ATL Component in C++ that fires COM events

Rate me:
Please Sign up or sign in to vote.
4.19/5 (12 votes)
14 Jun 20048 min read 88.4K   3K   38  
A COM component that implements interprocess communication, and illustrates firing events to a COM container such as Visual Basic

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

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


 /* File created by MIDL compiler version 6.00.0361 */
/* at Sun Jun 13 12:15:14 2004
 */
/* Compiler settings for .\InterProcessComms.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#if !defined(_M_IA64) && !defined(_M_AMD64)


#pragma warning( disable: 4049 )  /* more than 64k source lines */


#ifdef __cplusplus
extern "C"{
#endif 


#include <rpc.h>
#include <rpcndr.h>

#ifdef _MIDL_USE_GUIDDEF_

#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#else // !_MIDL_USE_GUIDDEF_

#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

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}

#endif !_MIDL_USE_GUIDDEF_

MIDL_DEFINE_GUID(IID, IID_IIPC,0x1EA7D7FD,0x5BC5,0x46D4,0x81,0x9D,0xBD,0x52,0x0E,0x2A,0x1D,0x0E);


MIDL_DEFINE_GUID(IID, LIBID_InterProcessCommsLib,0x22845CAA,0xF3B2,0x4F85,0xB8,0xEF,0xCA,0xEA,0xA7,0xEB,0xF7,0x96);


MIDL_DEFINE_GUID(IID, DIID__IIPCEvents,0xB11D3BF6,0x07E2,0x432E,0x95,0xFF,0xBC,0x46,0xE5,0x25,0xC0,0x4B);


MIDL_DEFINE_GUID(CLSID, CLSID_IPC,0x4B0C2DEB,0x1C04,0x4BB8,0x80,0xA4,0xB7,0xC2,0xCA,0x85,0xBC,0x8E);

#undef MIDL_DEFINE_GUID

#ifdef __cplusplus
}
#endif



#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

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
United Kingdom United Kingdom
I am a Surgeon by trade, but have been programming since I could reach the keyboard! I run a surgical website and am MD of a company that writes Surgical Software.

Comments and Discussions