Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

uxtheme.h error 2146 need an Identifier to declare on compile

I just installed LMD ELPACK 2012 trial into 
C++ Builder 6 Enterprise ver.10.166 
 I get 2 errors when I compile application: UxTheme.h(176): E2145 need an identifier to declare 
code: 
typedef enum THEMESIZE 

TS_MIN, // minimum size 
TS_TRUE, // size without stretching 
TS_DRAW, // size that theme mgr will use to draw part 
}; 

UxTheme.h(546): E2145 need an identifier to declare 
code: 
typedef enum PROPERTYORIGIN 

PO_STATE, // property was found in the state section 
PO_PART, // property was found in the part section 
PO_CLASS, // property was found in the class section 
PO_GLOBAL, // property was found in [globals] section 
PO_NOTFOUND // property was not found 
}; 
Tagged:

Comments

  • 4 Comments sorted by Votes Date Added
  • I installed another package earlier that uses the same file, and the same errors came up. I had to remove that package as it conflicted with Elpack. So I updated Builder 6 hoping to solve the problem but... Anyone else have this problem? Thanks 
  • Got very luck and found the answer:
    Change source to:
    typedef enum THEMESIZE 


    TS_MIN, // minimum size 
    TS_TRUE, // size without stretching 
    TS_DRAW, // size that theme mgr will use to draw part 
    }
    THEMESIZE  ; 


    UxTheme.h(546): E2145 need an identifier to declare 
    code: 
    typedef enum PROPERTYORIGIN 

    PO_STATE, // property was found in the state section 
    PO_PART, // property was found in the part section 
    PO_CLASS, // property was found in the class section 
    PO_GLOBAL, // property was found in [globals] section 
    PO_NOTFOUND // property was not found 
    }
    PROPERTYORIGIN  ; 
  • Yes - this is mentioned in the ReadMe files for C++Builder users (problem with Header files provided by Borland).
Sign In or Register to comment.