My program uses windows SDK and has <windows.h> inlude file before everything else in the main.C file but I still get the same error ("WinNT.h"(8383,80) Redefinition of macro 'THREAD_BASE_PRIORITY_MIN'.). I have seen other posts indicating to rearrange include order but that is not helping me. I still get the same error no matter, I have also rearranges the file orders in the project so that main.c compiles first. Anyone has ran into this before? Are there CVI specific files that load winnt.h before the files listed in the project? How is the compile order get set in the project?
The following error is occured in the Pre-processor portion of the code. I feel like the best way to determine where the error is occuring is to add <New Line> #error <NewLine> in header files and before and after #include staatements in your code until you can narrow down exactly where the error is being thrown. This method takes time but it will typically help us find the exact point of the problem.