Hi
I build a simple WRL componet by using template and add one method foo(). Then I add c++ metro style application in the same solution. In this c++ metro client, I add reference to my custom WRL component.
Now the issue comes, I use ActivateInstance or GetActivateFactory
RoInitializeWrapper initialize(RO_INIT_MULTITHREADED);
ComPtr<ICalculator> cal;
HString::MakeReference(InterfaceName_Contoso_ICalculator).Get(),&cal);
ComPtr<IActivationFactory> myActivationFac;
HRESULT hr = GetActivationFactory(HString::MakeReference(RuntimeClass_Contoso_Calculator).Get(), &myActivationFac);
hr is always return class not registered error.
But, if I used the build in WRL component, then it's fine. I search entire forums and cannot find the answer and sample code.
Seems to me this is not support for c++ metro client. Please share your experience.
Thanks,
SmoothConnection