Hi Nick.
The clue is in this line:
"Interface.h"(204,17) syntax error; found 'identifier' expecting ';'.
- specifically, the character position (17).
At this point, the compiler does not know what "CVICALLBACK" means (effectively it means "__cdecl"), so it "thinks" that you are declaring a variable named CVICALLBACK, and expects to see ";" (or "," and further identifiers).
To fix this, you need to:
#include < cvidef.h >
(either directly or indirectly) in your "Interface.h" file.
Further, each source file where this function is called needs to #include the header containing the prototype. The default return type (int) is assumed, but without the "__cdecl", the compiler won't include stack cleanup code with the call, leading to the crash.
The approach I use for my larger projects is to place all non-UI function prototypes in a single .h file, and #include this file in each .c file.
Regards,
Colin.