0

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

TridenT
  • 4,879
  • 1
  • 32
  • 56
Jigberto
  • 1,513
  • 7
  • 27
  • 50
  • sorry, I'm using C++ Builder 6 – Jigberto Sep 05 '13 at 20:12
  • The code you showed is Delphi code, not C++ code. The C++ equivalent is `TThread::Synchronize(NULL, &sync->Execute);`, however that version of `Synchronize()` does not exist in BCB6. – Remy Lebeau Sep 05 '13 at 20:15
  • @Remy Lebeau I'm trying to install Delphi Chromium Embedded on C++ Builder to use it in a old project. – Jigberto Sep 05 '13 at 20:18
  • In [your previous question](http://stackoverflow.com/q/18643146/33732) you said you had successfully used Chromium Embedded a "long time ago." Maybe you should try using the revision of that project that was current at the time you last used it instead of using the latest revision. – Rob Kennedy Sep 05 '13 at 20:27
  • the problem is that my OS was reinstalled and i did installed again bcb6 and now i'm trying to install chromium – Jigberto Sep 05 '13 at 20:39
  • You don't use revision control? – David Heffernan Sep 05 '13 at 20:48

1 Answers1

4

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.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490