Hi! Well, I did this only once, but it worked fine once I figured I had to use DECLARE_DYNAMIC_CLASS and IMPLEMENT_DYNAMIC_CLASS.
"wxwidgets forbids the usage of typeid" Really?? I guess you can't use rtti stuff since compiling with -fno-rtti won't give you support for it, but it isn't forbidden by wxWidgets. I'm sure you can use RTTI and wxWidgets together. All it says is that wxWidgets doesn't use RTTI, because some older compilers didn't support it.
BTW: Check out version 2.5.1. It has support for "native" RTTI, streams and exceptions if the compiler supports it.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |