windows/CVI 5.5, why do I get the following error: "Redeclaration of 'WCHAR'". It also claims that I redeclared 'LPWSTR' and redefinitions of macros MAKEINTRESOURCEA and MAKEINTRESOURCEW. These are all in winver.h, which aren't included in my source files.Just a quick answer first, and if this don't help I'll think further.
It may be that the file is being included from within another header file, and not one necessarily within your project.
Or, WCHAR and LPWSTR maybe defined in another header file of a different name altogether.
If there a file guard at the top of the header file ?
#if !defined SOME_NAMED_FILE_GUARD
#define SOME_NAMED_FILE_GUARD
..here follows the header file stuff
..at the end of the header file,
#endif
This will prevent the header file from being actioned twice, though I suspect it may be the other problem I mentioned.
But, check the file guard first, if it don't have one it should (good practice), if it does then its the existance of WCHAR etc)
Let me know,
Chri
s