Solved How to let qt dll (msvc) used by C#.
-
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#. -
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.