简体   繁体   English

在WinRT组件中使用第三方库

[英]Using 3rd party libraries in WinRT component

I am trying to use some image processing in my windows app (C#) 我试图在我的Windows应用程序中使用一些图像处理(C#)

My plan is to create a WinRT component project in C++ do all the image processing there and reference the WinRT project in my app. 我的计划是在C ++中创建一个WinRT组件项目,在那里进行所有图像处理,并在我的应用程序中引用WinRT项目。

My question is if i use a 3rd party library like OpenCV in my WinRT project (as additional library dependancy) will it get automatically included in my app or do i have to do something else? 我的问题是,如果我在WinRT项目中使用像OpenCV这样的第三方库(作为额外的库依赖性),它会自动包含在我的应用程序中,还是我必须做其他事情?

Can anyone please give the procedure to do this? 有人可以给这个程序吗? Thanks. 谢谢。

I have figured it out. 我已经弄清楚了。

The way to do it is just normally add the include directories and library dependencies for the WinRT component project in C++, then if you are not using static libraries you have to include the 3rd party dlls in the app which consumes WinRT component. 这样做的方法通常是在C ++中为WinRT组件项目添加包含目录和库依赖项,然后如果您不使用静态库,则必须在应用程序中包含使用WinRT组件的第三方dll。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM