'undeclared identifier' compiler error on TThread.Synchronize() method

1.2k views Asked by At

Compiler says undeclared identifier:

TThread.Synchronize(nil, sync.Execute);

probably I'm using old version, so how to correct this error ?

maybe to overload it, can anybody help, I'm new to delphi and I want to install a delphi component on c++ builder. I need to fix above error, which i don't know how.

I'm using BCB6. I'm trying to install Delphi Chromium Embedded on C++ Builder to use it in a old project

1

There are 1 answers

5
David Heffernan On

The code is written for a more modern version of BCB/Delphi. The Synchronize class method was added relatively recently (much more recently than BCB6) and your compiler error clearly indicates that your version is too old. The component you are trying to use does not support your compiler.

Possible solutions involve upgrading, or rewriting the code to match your version.