tags:

views:

19

answers:

1

CDialog *m_Dlg = NULL;

m_Dlg=this;

plese any body explain what happens if we assign a CDialog object to this.In the above example m_dlg=this; what m_dlg does.

A: 

It means that m_Dlg now points to the class instance which function is currently being executed. It also means that the function is a member of class of type CDialog or derived from it.

alemjerus