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
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
Re: pointer is of which Type ?
hi golanshahar,
thanks for the info
cheers
rajs