在visual studio 2012 c#中使用eclipse制作的c ++ dll? [英] Using c++ dll made from eclipse in visual studio 2012 c#?

查看:225
本文介绍了在visual studio 2012 c#中使用eclipse制作的c ++ dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在visual studio 2012 c#上使用eclipse制作的c ++ dll?我已经做了dll,并尝试在c#中引用它,但visual studio提供了一个错误,A reference to.... dll无法添加,请确保它是一个有效的程序集或com。

How can I use a c++ dll made from eclipse on visual studio 2012 c#? I already made the dll and tried to reference it in c# but visual studio gives an error that " A Reference to "....dll" could not be added please make sure that it is a valid assembly or com".

我已经看过它需要一个管理的com或某事?如果是这样,我可以在我的eclipse c ++ dll中这样做吗?

I have read about it needs to be a managed com or something? If so, How can I do that in my eclipse c++ dll?

推荐答案

我做了一个非常完整的教程作为另一个答案

I made a pretty complete tutorial as an answer of another question here on Stack Overflow.

请参阅如何使用C ++ / CLI访问类从C#?

它不是直接回答你的问题,但它可能有助于您从Visual Studio构建DLL,在特定情况下可能更容易这个特定的目标。

It's not directly answering your question, but it may help you building the dll from Visual Studio which might be easier in that particular case and with this particular goal.

编辑:可能有助于您或他人的其他类似问题。

Other similar questions that might help you or others.

如何在C#应用程序中使用C ++ / CLI

如何从C#调用C ++ / CLI?

这篇关于在visual studio 2012 c#中使用eclipse制作的c ++ dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆