Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SimpleClassFactory Class

 

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 SimpleClassFactory Class.

Provides a fundamental mechanism to create a base class.

template<  
   typename Base  
>  
class SimpleClassFactory : public ClassFactory<>;  

Parameters

Base
A base class.

The base class must provide a default constructor.

The following code example demonstrates how to use SimpleClassFactory with the ActivatableClassWithFactoryEx macro.

ActivatableClassWithFactoryEx(MyClass, SimpleClassFactory, MyServerName);

Public Methods

NameDescription
SimpleClassFactory::CreateInstance MethodCreates an instance of the specified interface.

I0

ChainInterfaces

I0

RuntimeClassBase

ImplementsHelper

DontUseNewUseMake

RuntimeClassFlags

RuntimeClassBaseT

RuntimeClass

ClassFactory

SimpleClassFactory

Header: module.h

Namespace: Microsoft::WRL

Microsoft::WRL Namespace

Show:
© 2018 Microsoft