Share via


SimpleClassFactory Class

Provides a fundamental mechanism to create a base class.

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

Parameters

  • Base
    A base class.

Remarks

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);

Members

Public Methods

Name

Description

SimpleClassFactory::CreateInstance Method

Creates an instance of the specified interface.

Inheritance Hierarchy

I0

ChainInterfaces

I0

RuntimeClassBase

ImplementsHelper

DontUseNewUseMake

RuntimeClassFlags

RuntimeClassBaseT

RuntimeClass

ClassFactory

SimpleClassFactory

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

Microsoft::WRL Namespace