다음을 통해 공유


SimpleActivationFactory::ActivateInstance Method

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SimpleActivationFactory::ActivateInstance Method.

Creates an instance of the specified interface.

Syntax

STDMETHOD(  
   ActivateInstance  
)(_Deref_out_ IInspectable **ppvObject);  

Parameters

ppvObject
When this operation completes, pointer to an instance of the object specified by the Base class template parameter.

Return Value

S_OK if successful; otherwise, an HRESULT that indicates the error.

Remarks

If __WRL_STRICT__ is defined, an assert error is emitted if the base class specified in the class template parameter isn't derived from RuntimeClass, or isn't configured with the WinRt or WinRtClassicComMix RuntimeClassType enumeration value.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

SimpleActivationFactory Class