Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.42 KB

activatableclass-macros.md

File metadata and controls

61 lines (49 loc) · 1.42 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
ActivatableClass Macros | Microsoft Docs
11/04/2016
cpp-windows
reference
ActivatableClass
ActivatableClassWithFactory
ActivatableClassWithFactoryEx
C++
ActivatableClassWithFactory
ActivatableClass
ActivatableClassWithFactoryEx
9bd64709-ec2c-4678-8c96-ea5982622bdd
6
mikeblome
mblome
ghogen

ActivatableClass Macros

Populates an internal cache that contains a factory that can create an instance of the specified class.

Syntax

ActivatableClass(  
   className  
);  
  
ActivatableClassWithFactory(  
   className,   
   factory  
);  
  
ActivatableClassWithFactoryEx(  
   className,   
   factory,   
   serverName  
);  
  

Parameters

className
Name of the class to create.

factory
Factory that will create an instance of the specified class.

serverName
A name that specifies a subset of factories in the module.

Remarks

Do not use these macros with classic COM unless you use the #undef directive to ensure that the __WRL_WINRT_STRICT__ macro definition is removed.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Module Class