Exporting functions from a DLL with dllexport
If you want plain C exports, use a C project not C++. C++ DLLs rely on name-mangling for all the C++isms (namespaces etc…). You can compile your code as C by going into your project settings under C/C++->Advanced, there is an option “Compile As” which corresponds to the compiler switches /TP and /TC. If you … Read more