I inherited the multi-page solution of huge C ++ with many dynamic libraries, but without
__declspec(dllexport)
I learned that it is not necessary to insert any dllexport (it will be a lot of work), but you can use the .def file instead as the corresponding DLL file.
To try that I built the โHello World DLLโ project from here , removed dllexport from the header and ... lagged frantically. According to the page already quoted , my key question is how
"[..] use the .def file when building the DLL."
My .def file (I try to use the code using the Add method only):
LIBRARY MathFuncsDll EXPORTS ?Add@MyMathFuncs @ MathFuncs@ @ SANNN@Z
How to use it when creating a DLL in Visual Studio 2010 to export the Add method?
Finnfalter
source share