我的自定义用户控件在 XamlSystemBaseType::IsConstructible() 中获取此hresult



我的自定义用户控件收到此奇怪的错误消息。为什么它甚至会到达这里

bool ::XamlTypeInfo::InfoProvider::XamlSystemBaseType::IsConstructible::get()
{
   throw ref new ::Platform::NotImplementedException;
}

我有两个DLL - 一个是用CX开发的,一个是用cppwinrt开发的。我发送了错误的代码片段。我的主要应用程序在cppwinrt中。即使在此结的 cppwinrt 中也会出现此问题:

bool XamlSystemBaseType::IsConstructible() const
{
    throw ::winrt::hresult_not_implemented {};
}

你在C++/WinRT市场上问了同样的问题。但是,如果不更多地了解您的项目,我们就无法真正提供帮助。您是否有机会分享一个简单的项目来显示问题?

相关内容

最新更新