在C#Universal App中使用带有外部LIB的C ++ WinRT组件 [英] Use a C++ WinRT Component with external LIB in a C# Universal App
问题描述
您好,
我创建了两个项目:一个C ++ WinRT组件项目和一个直接引用C ++项目的C#Universal应用程序。
I created two projects : a C++ WinRT Component project and a C# Universal app that references directly the C++ project.
如果我从C#的C ++ Windows运行时组件项目中调用我的类中的方法,它可以正常工作。
If I call a method from my class in the C++ Windows Runtime Component project from C# it's working fine.
当我在C ++项目中引用外部LIB时,我在C#Universal App项目中收到以下错误:"附加信息:找不到指定的模块。 (来自HRESULT的异常:0x8007007E)"。
I got the following error in the C# Universal App project when I reference an external LIB in the C++ project : "Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)".
我是否需要在C#项目中以某种方式引用LIB(我也有LIB的DLL)?
Do I need to reference somehow the LIB (I got a DLL with the LIB too) in the C# project too?
谢谢,
Adrien。
推荐答案
这篇关于在C#Universal App中使用带有外部LIB的C ++ WinRT组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!