Borland dumped all its "Borand C++ Builder" (BCB) customers. So it is our
term to dump Borland (not only BCB).
As a part of my attempt to dump long-loved BCB I'm trying to investigate how
one can implement "__property " in ANSI C++.
Would anyone have a solution hot to implement "__property " in ANSI C++ ie.
how to make following code compile in non-BCB C++ compiler?
class TMyClass
{
private:
int FMyVariable;
void __fastcall SetMyVariable(i nt Value) { FMyVariable = Value;}
int __fastcall GetMyVariable() { return FMyVariable;}
public:
__property int MyVariable = {read=GetMyVari able, write=SetMyVari able};
};
TMyClass MyClass;
void __fastcall TMyForm::Button 2Click(TObject *Sender)
{
MyClass.MyVaria ble = 1234;
Caption = IntToStr(MyClas s.MyVariable);
}