microsoft / cppwinrt

C++/WinRT
MIT License
1.64k stars 236 forks source link

Recognise local types for get_activation_factory #1359

Closed JaiganeshKumaran closed 11 months ago

JaiganeshKumaran commented 11 months ago

Currently (try_)get_activation_factory does not work for 'local' types. In some situations it can be useful to get the activation factory for a local type, which currently requires calling into winrt_get_activation_factory manually.

sylveon commented 11 months ago

Just use make_self<winrt::Namespace::factory_implementation::MyClass>()

JaiganeshKumaran commented 11 months ago

Just use make_self<winrt::Namespace::factory_implementation::MyClass>()

No, I need it from a string.