You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't matter what I do (I did a LOT of tests), but the C# side always fails when calling the RCW function (it does generate the wrapper correctly) but it fails in DynamicInterfaceCastableHelpers.GetInterfaceImplementation
with
System.InvalidOperationException: 'Type 'ABI.CSComponent.IMyTest' returned by IDynamicInterfaceCastable does not implement the requested interface 'CSComponent.IMyTest'.'
Point is that the message is not true, at least at the ABI level the interface is implemented and correctly returned by QueryInterface
The C# test method is correctly invoked and it seems that the interface wrapper is filled. It only fails when calling the interface method.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm authoring and exporting a C# public interface which I want to implement on the CppWinRT side, then pass it back to C#
In cppwinrt I generate an implementation using
doesn't matter what I do (I did a LOT of tests), but the C# side always fails when calling the RCW function (it does generate the wrapper correctly) but it fails in
DynamicInterfaceCastableHelpers.GetInterfaceImplementation
with
System.InvalidOperationException: 'Type 'ABI.CSComponent.IMyTest' returned by IDynamicInterfaceCastable does not implement the requested interface 'CSComponent.IMyTest'.'
Point is that the message is not true, at least at the ABI level the interface is implemented and correctly returned by QueryInterface
The C# test method is correctly invoked and it seems that the interface wrapper is filled. It only fails when calling the interface method.
Is this scenario supported somehow?
Beta Was this translation helpful? Give feedback.
All reactions