The function is defined three lines above without DLLEXPORT which MSVC did not like (error). I wonder if it is really necessary to declare it twice