- custommarshaling01_src.zip
- BasicSample01
- Clients
- VCConsoleClient01
- VCConsoleClient02
- VCConsoleClient03
- Implementations
- BasicSample01InterfacesImpl
- Interfaces
- BasicSample01Interfaces
- utilities
|
// Immutable.h : Declaration of the CImmutable
#pragma once
#include "resource.h" // main symbols
#include "BasicSample01Interfaces.h"
// CImmutable
class ATL_NO_VTABLE CImmutable :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CImmutable, &CLSID_Immutable>,
public IDispatchImpl<IImmutable, &IID_IImmutable, &LIBID_BasicSample01InterfacesLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
public:
CImmutable()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_IMMUTABLE)
BEGIN_COM_MAP(CImmutable)
COM_INTERFACE_ENTRY(IImmutable)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
STDMETHOD(get_LongValue)(LONG* pVal);
};
OBJECT_ENTRY_AUTO(__uuidof(Immutable), CImmutable)
|
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.
Lim Bio Liong is a Specialist at a leading Software House in Singapore.
Bio has been in software development for over 10 years. He specialises in C/C++ programming and Windows software development.
Bio has also done device-driver development and enjoys low-level programming. Bio has recently picked up C# programming and has been researching in this area.