I'm trying to build a function package (.dll) for excel that can be used through the VBA module. I want to expose two basic functions to VBA, one that returns the product of two number (called Multiply) and one that shows some GUI (called ShowDialog). Now there're several ways to export functions with Qt+MinGW, which is my setup. I have chosen to compile a c file with a .def file listing the exported functions.
For testing reasons, I've build the library from two IDEs, one from Visual C++ 6 and one from Qt. The VC6 works perfectly when I connect to it from Excel/VBA but the Qt won't even load the library - and I can't figure out why?!
When I look at the two .dlls with Depenency Walker they both export the two functions undecorated (see attached screenshot), so the they appear to have the same binary interface.
When I load them with QLibrary they also behave the same.
I don't think it's the different compiler settings since I've followed these instructions
http://sourceware.org/binutils/docs/ld/WIN32.html
http://www.transmissionzero.co.uk/co...ls-with-mingw/
It might be that the windows SDK isn't included properly, so I turned to this article
http://doc.qt.digia.com/solutions/4/...lkthrough.html
which didn't help.
I'm kinda stuck here, guys! Has anyone succeeded in writing a Qt dll for Excel/VBA?