|
// MeaningOfLife3.h : Declaration of the CMeaningOfLife3
#ifndef __MEANINGOFLIFE3_H_
#define __MEANINGOFLIFE3_H_
// IMeaningOfLife3
[
object,
uuid("5D5DFA33-7F6D-41b6-BC07-3CFF781B7D4C"),
dual,
helpstring("IMeaningOfLife3 Interface"),
pointer_default(unique)
]
__interface IMeaningOfLife3 : IDispatch
{
[propget, id(1), helpstring("property MeaningOfLife")] HRESULT MeaningOfLife([out, retval] LONG* pVal);
};
// CMeaningOfLife3
[
coclass,
threading("neutral"),
vi_progid("MyService3.MeaningOfLife3"),
progid("MyService3.MeaningOfLife3.1"),
version(1.0),
uuid("F5602F4B-00D6-445b-A34F-86F950CE2917"),
helpstring("MeaningOfLife3 Class")
]
class ATL_NO_VTABLE CMeaningOfLife3 :
public IMeaningOfLife3
{
public:
CMeaningOfLife3()
{
}
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
STDMETHOD(get_MeaningOfLife)(/*[out, retval]*/ long *pVal);
};
#endif //__MEANINGOFLIFE3_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
Vagif Abilov is a Russian/Norwegian software developer and architect working for Miles. He has more than twenty years of programming experience that includes various programming languages, currently using mostly C# and F#.
Vagif writes articles and speaks at user group sessions and conferences. He is a contributor and maintainer of several open source projects, including Simple.Data OData adapter, Simple.OData.Client and MongOData.