Hello again,
The code generated with CVI 2015 has these errors and warnings (all warnings enabled) if you have a header where the functions are decorated with DLLEXPORT or DLLIMPORT like "DLLEXPORT void __stdcall Func(void);"
error: expected ';' after top level declarator
warning: declaration does not declare anything [-Wmissing-declarations]
(both are caused by the "__declspec(dllexport);" after the Ptr definition.
warning: assigning to 'void (*)()' from 'void *' converts between void pointer and function pointer [-Wtypecheck-convert]
(which is the "...Ptr = (void*) GetProcAddress...")
warning: function declaration isn't a prototype. [-Wstrict-prototypes]
error: expected ';' after top level declarator
error: expected identifier or '('
(the function definition "void Func() __declspec(dllexport)")
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
note: place parentheses around the assignment to silence this warning
note: use '==' to turn this assignment into an equality comparison
("if (dllLoadError = LoadDLLIfNeeded())")
-----------------------
/* Nothing past this point should fail if the code is working as intended */