COM Library
|
The InprocServer class declaration. More...
Classes | |
class | COM::InprocServer |
The base class for In-prcoess (DLL based) servers. More... | |
Namespaces | |
namespace | COM |
The COM Library namespace. | |
Defines | |
#define | DEFINE_CLASS_FACTORY_TABLE() |
#define | DEFINE_CLASS(clsid, type, primary_iface) |
#define | END_CLASS_FACTORY_TABLE() |
Typedefs | |
typedef WCL::IFacePtr < IClassFactory > | COM::IClassFactoryPtr |
The class factory smart-pointer type. | |
typedef WCL::IFacePtr< IUnknown > | COM::IUnknownPtr |
The IUnknown smart-pointer type. |
The InprocServer class declaration.
#define DEFINE_CLASS_FACTORY_TABLE | ( | ) |
virtual COM::IUnknownPtr CreateObject(const CLSID& oCLSID) \ { \ COM::IUnknownPtr pUnknown;
#define DEFINE_CLASS | ( | clsid, | |
type, | |||
primary_iface | |||
) |
if (oCLSID == clsid) \ pUnknown = COM::IUnknownPtr(static_cast<primary_iface*>(new type), true);
#define END_CLASS_FACTORY_TABLE | ( | ) |
return pUnknown; \
}