Subj : Borland Builder 6 compile problem with uxtheme.h To : borland.public.cpp.borlandcpp From : "Rainer M. Schmid" rms Date : Mon Aug 18 2003 03:06 am When I try to compile the following program with Borland Builder 6 (I have update 4 installed) #include #include int main(int /*argc*/, char ** /*argv*/) { return 0; } I get the following error messages: C:\Work\tmp>bcc32 main.cpp Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland main.cpp: Error E2146 C:\Program Files\Borland\CBuilder6\Include\uxtheme.h 176: Need an +identifier to declare Error E2146 C:\Program Files\Borland\CBuilder6\Include\uxtheme.h 546: Need an +identifier to declare *** 2 errors in Compile *** I can solve the compile problem if I apply the following patch to uxtheme.h: @@ -173,7 +173,7 @@ TS_MIN, // minimum size TS_TRUE, // size without stretching TS_DRAW, // size that theme mgr will use to draw part -}; +} foo_themesize; //------------------------------------------------------------------------- // GetThemePartSize() - returns the specified size of the theme part // @@ -543,7 +543,7 @@ PO_CLASS, // property was found in the class section PO_GLOBAL, // property was found in [globals] section PO_NOTFOUND // property was not found -}; +} foo_propertyorigin; //----------------------------------------------------------------------- // GetThemePropertyOrigin() Is this a known problem and is there a workaround available that does not require changing system headers? Some of our customers want to compile our sourcecode with Borland Builder 6 and I wonder what we should tell them to resolve the compile problem (or if we are able to fix the compile problem in our code without the need for them to do anything). Best regards, Rainer .