Can I call a dll written in c++ from within a .NET app?

I haven´t found an answer to this question in the documentation, so I will ask it directly here...

I have a dll written in C++ with a lot of calculations already implemented.

Can I use call it directly from within a .NET Eikon app and use it in my app? Or I would have to rewrite it for C# or port it to a managed C++?

Thanks

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    Only managed code is allowed in App Studio .NET applications, therefore, you can do either.

Answers

  • Would wrapping your C++ code in behind a COM interface work for you?

  • Thank you for your participation in the
    forum.

    Are any of the replies below satisfactory
    in resolving your query?

    If yes please click the 'Accept' text next
    to the most appropriate reply. This will guide all community members who have a
    similar question.

    Otherwise please post again offering
    further insight into your question.

    Thanks,

    AHS