|
-
January 12th, 2006, 02:26 AM
#1
check pointer is of which Type ?
Hi All,
i have a CPtrArray object m_ptrObj.
In this i will be storing different dialogs pointer which will be dynamically created.
Lets say i have a dialog class CTempDlg and i will store pointer of this object to m_ptrObj.
If i have to find out if a pointer of type CTempDlg exists or not in m_ptrObj array, what should i do ?
any suggestions?
thanks ahead
rajs
Last edited by brraj; January 12th, 2006 at 02:47 AM.
-
January 12th, 2006, 03:20 AM
#2
Re: pointer is of which Type ?
if you want to determine type of pointer at runtime you can use RTTI, look at that that link:
Run-Time Type Information
Cheers
-
January 12th, 2006, 04:24 AM
#3
Re: pointer is of which Type ?
hi golanshahar,
thanks for the info
cheers
rajs
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
|