Is it possible to use C # dll in Qt?

I am writing a program that uses C # sdk. The functionality of this program will be used in a larger program written in C ++ using QtCreator. I would like to create a C # dll to interact with sdk and then use this in a C ++ program. Someone has done this before and can point me in the right direction.

Many thanks.

+4
source share
1 answer

You can, I do this regularly at work. You can use C # from C ++ using COM and Interop. It is worth noting that these are all windows only.

If you have not used COM from C ++ before you come across an unpleasant surprise. This is pretty unpleasant.

, , , , ++:

COM (++)?

ATL, COM .

EDIT: , Qt COM, . https://doc.qt.io/qt-5.10/activeqt-index.html

Google #, ComVisible Guid , COM , regasm.exe( .NET Framework).

+4

Source: https://habr.com/ru/post/1693360/


All Articles