//foo.h
The key thing, not so much the names of the functions, or my return type of return type, is that the name of the function you want to export is indicated with the name #defined __declspec, as well as the type.
You will also do the same in the function definition:
//foo.cpp
The implementation of the function is not important, just before you put FOO_API.
source share