Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling DLL from QM
#2
Exported class function names will be decorated. Open your dll file with depends.exe and copy the decorated name. QM code could be:
Macro Macro2345
Code:
Copy      Help
dll "$qm$\math.dll" [?Add@Math@@YANNN@Z]double'Math_Add double'a double'b
out Math_Add(5.7 2)

To avoid decoration, export non-class functions. Use either .def file or extern "C".

Or use a COM interface, especially when want to export non-static class functions.


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)