LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Clash between windows.h & formatio.h

New equipment I am integrating requires that I include windows.h. (from sdk) When I do this I get 'redeclaration' errors for CVI_ Read, Write & Open files 'previously declared in formatio.h'.
Tried different order etc. no luck. Clues please.
0 Kudos
Message 1 of 3
(3,457 Views)
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
Message 2 of 3
(3,457 Views)
Fixed it. Many thanks.
When I first moved the statement, it didn't appear to make a difference, but there were references via other files. Once these were re-ordered all was OK.
0 Kudos
Message 3 of 3
(3,457 Views)