question

Upvotes
Accepted
19 2 0 6

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

eikoneikon-data-apic#c++eikon-app-studio
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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

1 Answer

· Write an Answer
Upvotes
Accepted
4.6k 26 7 22

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.