P
P
Pantene7422017-02-13 23:51:40
.NET
Pantene742, 2017-02-13 23:51:40

What is the best way to interact between C# and C++?

In the case of java, there are many books that are called jni.
And even in Russian.
In Java, there is One JVM API interface that allows you to make code calls from both manage to unmanage and vice versa.
In the case of MS .net, here is p/invoke, activex, com, c++/cli.
Which of these is the freshest? What technologies are used most often in the actual practice of code interaction?
What books are there for C++ programmers on this topic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
John_Nash, 2017-02-14
@Pantene742

c++/cli is the most convenient in my opinion. If you know c# and c++ you can figure it out in a couple of hours or even less, you can read an article on Habré - almost everything is described there.
building an activex component in c++ is not a trivial task.
p/invoke only works one way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question