question

Upvotes
Accepted
19 1 0 4

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-apieikon-app-studioc#c++
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.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

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea