17 #ifndef _OBJECTFACTORY_H 18 #define _OBJECTFACTORY_H 34 if (ppInstance == NULL)
59 Chk(pInstance->Initialize());
72 template <
typename A,
typename I>
80 Chk(pInstance->Initialize(paramA));
93 template <
typename A,
typename B,
typename I>
101 Chk(pInstance->Initialize(paramA, paramB));
108 pInstance->Release();
static HRESULT CreateInstanceNoInit(X **ppInstance)
#define ChkIf(expr, hrerror)
static HRESULT CreateInstance(A paramA, I **ppI)
static HRESULT CreateInstance(A paramA, B paramB, I **ppI)
static HRESULT CreateInstance(I **ppI)