E2458 Delphi classes have to be derived from Delphi classes (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

You cannot derive a Delphi style class from a non-Delphi style class. Delphi style classes derive directly or indirectly from System::TObject.


Example:

struct base// base not a Delphi style class
{
intbasemem;
};
struct __declspec(delphiclass) derived : base // or
{
intderivedmem;
};