#include" pch.h" #include" WinRTComponent.h" // WinRTComponent.cpp#include "pch.h"#include "WinRTComponent.h"使用命名空间WinRTComponentDll; using namespace Platform; using namespace WinRTComponentDll;using namespace Platform; BaseClass :: BaseClass() {} BaseClass::BaseClass(){} DerivedClass :: DerivedClass() {} DerivedClass::DerivedClass(){} 推荐答案 这并不让我感到惊讶。 请记住,您需要确保只有密封的类才能通过WinRT传递。 你不能从密封的类派生,所以我希望这会失败。That does not surprise me.  Remember you need to ensure only classes that are sealed can be passed through WinRT.  You cannot derive from sealed classes so I would expect this to fail. 这篇关于Javascript无法做动态类型转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 07:43