Home | Info | Community | Development | myReactOS | Contact Us
[inline, static]
Definition at line 226 of file atlcom.h.
{ T1 *newInstance; HRESULT hResult; ATLASSERT(ppv != NULL); if (ppv == NULL) return E_POINTER; *ppv = NULL; hResult = E_OUTOFMEMORY; newInstance = NULL; ATLTRY(newInstance = new T1()) if (newInstance != NULL) { newInstance->SetVoid(pv); newInstance->InternalFinalConstructAddRef(); hResult = newInstance->_AtlInitialConstruct(); if (SUCCEEDED(hResult)) hResult = newInstance->FinalConstruct(); if (SUCCEEDED(hResult)) hResult = newInstance->_AtlFinalConstruct(); newInstance->InternalFinalConstructRelease(); if (SUCCEEDED(hResult)) hResult = newInstance->QueryInterface(riid, ppv); if (FAILED(hResult)) { delete newInstance; newInstance = NULL; } } return hResult; }