A .dot dll is not a standard dll, it's an "Assembly" which is a IL (intermediate language byte code), not something that can be loaded by the standard C++ load library calls.
Someone may have written a loader but it's not an out of the box option.
If you have the source code for the dll, then I'd reccomend adding "attributes to the class declarations and members you want "exported" making them COM ready, then use the Active Qt API to treat them like any other COM object. Find some tutorials on the COM on .NET stuff by searching for CCW (COM Callable Wrapper) and RCW (Runtime Callable Wrapper). I used this technique to create a Windows Explorer context menu shell extension in C#.
If you don't have the source code, then it'd be quite easy to create a .NET wrapper for the dll which does the above mentioned stuff. Create yourself a new "Class Library" project in Visual Studio, then add a "Reference" to the dll, include the namespaces from the external dll and you can wrap each public member into a COM callable class.
Are you trying to display ui controls on your QWidget? I'm not sure if it's that simple, maybe if the Control is defined as a COM object it will work, this will require some experimentation on your part.I m trying to embed dotnet dll into my QWidget
Bookmarks