Exporting Correctly

To correctly export functions with Visual C++ you will also need to add definition or a .DEF file to the project. The .DEF file needs to list all the exports that have already been specified with _declspec(dllexport). If this is not done all exports will have C++ style name mangling performed on them. A minimum .DEF file would look like this:

LIBRARY DLLNAME
EXPORTS
    FuncName1
    FuncName2
    …