I have looked into your problem, and can reproduce the errors if the windows.h include statement is below the CVI formatio.h include statement, however is the #include statement is moved to the top of the include statements the error is resolved. It may be with your code that there are other include statements, such as #include that cause clashes as well, so is best to put the windows.h include at the top of this block. I have included a link to a Knowledge Base discussing this problem.
If this doesn't help, please could you set me a snippet of the code where the include statements are and I may be able to help further.
http://digital.ni.com/public.nsf/websearch/3AF6755831B6E53F862564DE00014E42?OpenDocument
Hannah
Applications Engi
neer
NI