Fun with compiler errors
-
I'm getting these errors as I try to upgrade an visual studio 6.0 project to .NET. :sigh: 1)"error C2628: 'wchar_t' followed by 'unsigned' is illegal (did you forget a ';'?)" which points to this part of the code typedef wchar_t WCHAR; // wc, 16-bit UNICODE character in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h" file 2) "error C2371: 'BOOLEAN' : redefinition; different basic types." which points to this part of the code typedef BYTE BOOLEAN; in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h file." and last but NOT least, 3) "error C2371: 'BOOLEAN' : redefinition; different basic types." which points to this part of the code /* For backward compatibility */ typedef VARIANT_BOOL _VARIANT_BOOL; #else /* ANSI C/C++ reserve bool as keyword */ #define _VARIANT_BOOL /##/ #endif typedef boolean BOOLEAN; in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h file." Is there a way to NOT include these files when I compile? :omg:
-
I'm getting these errors as I try to upgrade an visual studio 6.0 project to .NET. :sigh: 1)"error C2628: 'wchar_t' followed by 'unsigned' is illegal (did you forget a ';'?)" which points to this part of the code typedef wchar_t WCHAR; // wc, 16-bit UNICODE character in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h" file 2) "error C2371: 'BOOLEAN' : redefinition; different basic types." which points to this part of the code typedef BYTE BOOLEAN; in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h file." and last but NOT least, 3) "error C2371: 'BOOLEAN' : redefinition; different basic types." which points to this part of the code /* For backward compatibility */ typedef VARIANT_BOOL _VARIANT_BOOL; #else /* ANSI C/C++ reserve bool as keyword */ #define _VARIANT_BOOL /##/ #endif typedef boolean BOOLEAN; in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h file." Is there a way to NOT include these files when I compile? :omg:
There's an easy way to stop WTypes.h not being included and that is to
#define __wtypes_h__
at the beginning of your source file, or even just add __wtypes_h__ as a defined macro in your project settings. This may well not solve your problems, however. -
There's an easy way to stop WTypes.h not being included and that is to
#define __wtypes_h__
at the beginning of your source file, or even just add __wtypes_h__ as a defined macro in your project settings. This may well not solve your problems, however. -
There's an easy way to stop WTypes.h not being included and that is to
#define __wtypes_h__
at the beginning of your source file, or even just add __wtypes_h__ as a defined macro in your project settings. This may well not solve your problems, however.