wxEvent derived event

Carsten A. Arnholm arnholm at offline.no
Sun Feb 10 10:52:09 PST 2008


Dobrescu Mihai wrote:
> Hello,
>
> I need help writing a derived class from wxEvent.
> I need to split it into .h & .cpp.
> The sample from documentation can't be compiled saying 'cannot
> instantiate abstract class' (see Event handling overview).
> In my case, I use the dll build of wx 2.8.7 and MSVC 2008 as
> compiler,a precompiled headers project template of code::blocks.
>
> Thanks in advance,
> Mihai Sorin Dobrescu

Hi,

I don't know your specific problem, but 'cannot instantiate abstract class' 
is normally an indication that you have not defined a pure virtual function 
declared in the base class in your own class, or that you have redeclared a 
in inherited pure virtual function as pure (using =0 syntax) in your own 
class. In that case it is abstract and cannot be instantiated.

Regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list