Click here to Skip to main content
15,895,011 members
Articles / Programming Languages / C++

COM from scratch - PART ONE

Rate me:
Please Sign up or sign in to vote.
4.89/5 (118 votes)
17 Apr 2004CPOL13 min read 292.6K   9.2K   254  
An article about COM.

//IID and CLSID for Component 2


extern "C" const IID IID_IComponent2 ;
extern "C" const CLSID CLSID_Component2 ;

// {6FE2F675-F248-46ea-81C4-67DD90014A2E}
extern "C" const IID IID_IComponent2= 
{ 0x6fe2f675, 0xf248, 0x46ea, { 0x81, 0xc4, 0x67, 0xdd, 0x90, 0x1, 0x4a, 0x2e } };

// {82CC39BB-9A84-4000-9D38-8879CB42B518}
extern "C" const GUID CLSID_Component2= 
{ 0x82cc39bb, 0x9a84, 0x4000, { 0x9d, 0x38, 0x88, 0x79, 0xcb, 0x42, 0xb5, 0x18 } };

interface IComponent2 : IUnknown
{
 
	virtual void __stdcall DefineWindow_Com2(bool inner)=0;
    virtual void __stdcall ShowWndBackground_Com2(COLORREF bgcolor)=0;
    virtual IUnknown* __stdcall Queryitself2()=0;
    virtual void __stdcall MenuitemNotselected2()=0;
    virtual void __stdcall StopFlying()=0;
    virtual void __stdcall StartFlying()=0;
} ;

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions