.... forgot to mention in my previous reply:
Be sure to include "windows.h" when you use the function LoadLibrary() to dynamically load your dll file.
FreeLibrary() function should be called to unload it when the program ends.
If you need other functions defined in "formatio.h", "windows.h" should be included before "formatio.h".
Otherwise, there'll be compiling errors.