简体   繁体   中英

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

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?

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#?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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