I\'m writing a test app that simulates key presses of another application. For every key press I have to check if the right window/form is shown. So what I do is get the poi
You could also check the typeinfo header. Using the typeid operator on you object you get a type_info instance which describes the type of your object.
Check out: http://www.cplusplus.com/reference/std/typeinfo/type_info/