Using c++ dll made from eclipse in visual studio 2012 c#?

人走茶凉 提交于 2020-01-06 21:00:11

问题


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".

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?


回答1:


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

See How to access class in C++/CLI from C#?

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.

Edit: Other similar questions that might help you or others.

How to Use C++/CLI Within C# Application

How do I call C++/CLI from C#?



来源:https://stackoverflow.com/questions/21866345/using-c-dll-made-from-eclipse-in-visual-studio-2012-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!