如何将Vc ++ dll添加到.Net项目作为参考 [英] How to add Vc++ dll to .Net project as reference
本文介绍了如何将Vc ++ dll添加到.Net项目作为参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Vc ++ dll添加到.Net项目作为参考?。
解决方案
检查一下 -
如何:在Visual Studio中添加或删除引用 [ ^ ]
希望它有所帮助!
这只有在它' '是一个支持COM的DLL。对于普通的C / C ++库,您需要使用平台调用 [ ^ ]。
您好,
首先,右键单击参考,然后选择添加参考。
然后,您可以选择.NET,COM,解决方案或浏览。
Hi,
How to add Vc++ dll to .Net project as reference?.
解决方案
hi, Check this-
How to: Add or Remove References in Visual Studio[^]
hope it helped!
This will only work if it''s a COM enabled DLL. For ordinary C/C++ libraries you need to use Platform Invoke[^].
Hi,
First, right-click on "References", and select "Add Reference".
Then, you can choose ".NET", "COM", "Solution" or "Browse".
这篇关于如何将Vc ++ dll添加到.Net项目作为参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文