Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT application linking with .net ?



  • I have a QT application, and I need to link to a external library written in .Net. Based on this code (https://www.digitalrune.com/Text-Editor-Control ) . Any easy way to link these items? My application needs to call this library


  • Qt Champions 2019

    I don't think this is easy or even possible. C++ applications are compiled to native binary code (running directly on the CPU), .Net applications are compiled to intermediate code which then is translated to native binary code during runtime by the .Net Common Language Runtime (CLR) - same concept as Java. So, a native application cannot access .Net DLLs directly. It is possible to use native binaries (like DLLs using Qt) from a .Net application.


Log in to reply