将dll绑定到VS项目中 [英] Bind a dll into a VS Project
本文介绍了将dll绑定到VS项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在新项目中使用kalman过滤器来平滑一些eyetracking数据,但我无法将opencv_core231.dll加载到我的项目中。如何在VS中加载这个dll?
请帮帮我。
greetz
Marko
Hi,
I try to use the kalman filter in a new project to smooth some eyetracking data, but i can't load the opencv_core231.dll into my project. How can I load this dll in VS?
please help me.
greetz
Marko
推荐答案
使用C#,您需要使用P / Invoke。请参阅:
http://en.wikipedia.org/wiki/Platform_Invocation_Services [< a href =http://en.wikipedia.org/wiki/Platform_Invocation_Servicestarget =_ blanktitle =New Window> ^ ],
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp [ ^ ] 。
此CodeProject文章也很有用: http:/ /www.codeproject.com/csharp/EssentialPInvoke.asp [ ^ ]。
-SA
With C#, you need to use P/Invoke. Please see:
http://en.wikipedia.org/wiki/Platform_Invocation_Services[^],
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp[^].
This CodeProject article can also be useful: http://www.codeproject.com/csharp/EssentialPInvoke.asp[^].
—SA
这篇关于将dll绑定到VS项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文