Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to let qt dll (msvc) used by C#.
Forum Updated to NodeBB v4.3 + New Features

How to let qt dll (msvc) used by C#.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 191 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • brucezcgB Offline
    brucezcgB Offline
    brucezcg
    wrote on last edited by
    #1

    I developed an SDK (a dll) build with QT, and used the signal/slot and QObject ……etc.
    Now how to use it in C#?
    Because some of our customers use it in VStudio (C# & C++).
    Now we can support using our dll in VS(C++) but not succeed with C#.

    1 Reply Last reply
    0
    • brucezcgB Offline
      brucezcgB Offline
      brucezcg
      wrote on last edited by
      #2

      Now we create the Qt Dll(MSVC 32bit)
      And then in vs2017 create CLR class library to wrapper the above dll.
      At last, create a C# project to use the CLR library.
      But when I run the C# demo. The app was crashed, the error log as follows:

      System.IO.FileNotFoundException: 'Could not load file or assembly 'DataSDK_CLR.dll' or one of its dependencies. The specified module could not be found.'

      I had already put the qt dll and wrapper dll under the path of demo exe.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved