Skip to content

Latest commit

 

History

History
84 lines (72 loc) · 1.65 KB

File metadata and controls

84 lines (72 loc) · 1.65 KB
title ActivatableClass Macros | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
ActivatableClass
ActivatableClassWithFactory
ActivatableClassWithFactoryEx
dev_langs
C++
helpviewer_keywords
ActivatableClassWithFactory
ActivatableClass
ActivatableClassWithFactoryEx
ms.assetid 9bd64709-ec2c-4678-8c96-ea5982622bdd
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

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