I forgot to mention that I am accessing the DLL via VBA using the "Declare" statement.
Thanks very much,
Lucas
Hello,I am trying to build a simple DLL for Excel that uses QuantLib with MinGW on Windows 7. The DLL exports simple C functions using the following statements:
extern "C" __declspec(dllexport) __stdcall double some_function().
QuantLib objects are used inside these functions. I was able to use some objects with success until I tried template classes, like InterpolatedZeroCurve<Interpolator>. The code build successfully, but when I ran it in Excel I get the following error:"Microsoft Visual C++ Runtime Library: This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information".The same function works if I test it through a simple command line application. Also, I verified dependencies with Dependency Walker and everything is fine.I would appreciate very much any help or explanation regarding this behaviour.Thanks very much,--Lucas Lorenzi Ingles
Free forum by Nabble | Disable Popup Ads | Edit this page |