class MyControl : public BaseControl
{
}
class Base
{
proctected:
BaseControl &mControl;
}
class MyClass : public Base
{
public:
MyClass( MyControl &control );
void ReadControl();
}
MyClass::MyClass( MyControl &control )
:Base(control)
{
}
void MyClass::ReadControl( void )
{
MyControl &control = (MyControl &)mControl; // <=== ???
control.DoSomething();
}
Hi all,
Can anyone tell me how to cast the BaseControl reference to a MyControl reference ?? The above code is basicly what I have.
Thanks in advance..