LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

error when declaring a variable named "interface" after including cvixml.h

after having included "cvixml.h" in my file, the compiler stops with 3 errors each time i declare a variable named "interface". errors are:
- missing struct tag
- invalid type specification
- warning:  empty declaration

when i do not include "cvixml.h", the error does not appear. and i can't find a "struct interface" declared anywhere in CVI's headers. i suppose it has something to do with cvixml using msxml COM object, thus "enabling" an "feature" which allows to declare COM interfaces... but this is a supposition...

is this problem normal ? what happens ? how can i name my (local) variable "interface" ?



0 Kudos
Message 1 of 3
(3,146 Views)
interface is #defined as struct in objbase.h and used by msxml.h
You can #undef interface after having included <cvixml.h>

I hope this helps,
Regards,
Nicolas
0 Kudos
Message 2 of 3
(3,141 Views)
it helps a lot ! that works, thank you !
0 Kudos
Message 3 of 3
(3,135 Views)