Yes, as long as the DLL does not link to any Qt component. The above uses macros defined by Qt headers but you could easily produce a non-Qt version of those macros to provide complete independence.
With the C++ example the user would have to be using the same compiler/linker type to cope with name mangling: e.g. if you built the DLL with MSVC they would need to use MSVC, if you build with MinGW/GCC they would need to use GCC.
If the interface is C-style then any compiler/linker should be able to use it.
Bookmarks