This topic has not yet been rated - Rate this topic

ActivatableClass Macros

Visual Studio 2012

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

ActivatableClass(
   className
);

ActivatableClassWithFactory(
   className, 
   factory
);

ActivatableClassWithFactoryEx(
   className, 
   factory, 
   serverName
);
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.

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.

Header: module.h

Namespace: Microsoft::WRL

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.