Search code examples
c++c++builderc++builder-2010c++builder-6

Builder 2010 "is not accessible" error


I'm trying to migrate my project from C++ Builder 6 to C++ Builder 2010. There is a TChart in the project. And when I compile it in BCB 2010, I getting many errors like E2247 '_fastcall TSeriesPointer::ChangeStyle(TSeriesPointerStyle)' is not accessible. What can it be?

There is string with failed code:

Series8->Pointer->ChangeStyle(InpStr.ToInt());

Series8 -- it's an object of TSeries type. InpStr -- is an UnicodeString object.


Solution

  • I found an answer. In Builder C++ 2010, functions with names beginning Change is changed to properties without "Change". i.e:

    Series13->Pointer->ChangeStyle(4);
    

    to:

    Series13->Pointer->Style = psCross;