I want to use the library "VCL Style Utils" in Embarcadero C++Builder 10.2 Tokyo.
So I created a new project and added:
Vcl.Styles.Utils.Graphics.pas
Vcl.Styles.Utils.Menus.pas
Vcl.Styles.Utils.SysControls.pas
Vcl.Styles.Utils.SysStyleHook.pas
The build is successful and generates .hpp
files for these .pas
files.
Then I create another project and include the .hpp
files generated.
But when building I get this error:
[bcc32 Error] Vcl.Styles.Utils.Menus.hpp(164): E2040 Declaration terminated incorrectly.
Here are lines 163 and 164 of Vcl.Styles.Utils.Menus.hpp :
static const System::Word MN_SETHMENU = System::Word(0x1e0);
static const System::Word MN_GETHMENU = System::Word(0x1e1);
Why are these declarations incorrect ?