От: | Crackjack | ||
Дата: | 14.09.11 07:49 | ||
Оценка: |
class A
{
TPanel *pnl;
TBitBtn *mp;
public:
operator TWinControl*()const{return pnl;}
};
//Код
A::A()
{
...
mp = new TBitBtn(this);
mp->Parent = this; // Выдает [BCC32 Error] mpDynTable.cpp(40): E2031 Cannot cast from 'mpPlatform * const' to 'TWinControl *'
}