|
// CGreet.h : Declaration of the CCGreet
#ifndef __CGREET_H_
#define __CGREET_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CCGreet
class ATL_NO_VTABLE CCGreet :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CCGreet, &CLSID_CGreet>,
public IDispatchImpl<ICGreet, &IID_ICGreet, &LIBID_SAMPLE1Lib>
{
public:
CCGreet()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_CGREET)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CCGreet)
COM_INTERFACE_ENTRY(ICGreet)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// ICGreet
public:
STDMETHOD(SayHello)(/*[in]*/ BSTR name, /*[out,retval]*/ BSTR *retstr);
};
#endif //__CGREET_H_
|
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.
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
Imran is a software professional with 9 years of development experience and has worked on JAVA, VB6, VC6, C# & some JavaScript.
He is interested in Hi-Performance code, OO Methodology, OS API's, Optimizing Windows, Tweaking IE.
For the last few years Imran has specialized in developing robust, hi-performance applications & GUI's (Swing) for MNC's.
http://techspot121.blogspot.com/