|
-
October 19th, 2004, 05:59 AM
#1
Find out type of class
How do I find out, which type of class the variable is, I catually have.
Let me give you an example how I mean this:
Code:
CRectangle* rectangle = new CRectangle();
if ( isClassType(CRectangle, rectangle) )
{
print("the variable rectangle is a CRectangle class");
}
The function I search has another name and other variables, but it finds out, what kind of class the variable (or pointer) is.
I know there is a function like the isClassType() in MFC, but I don`t find it.
Please help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|