المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Construcor getting called twice........



C++ Programming
09-29-2009, 07:40 PM
Hi to All,

In regards to previous problem of mine,...I have made an overloaded construtor of dialog class in dialogB...Now while creating the object of the dialog , I am passing the variables...No problem the overloaded contrctor of dialogB calls fine. But again, the default constructor is getting called. Why so?

my code line to create the dialog is...

dialogB obj = new dialogB(&m_boardMainPage,&m_portMainPage,&m_extMainPage);
obj.DoModal();


I need to create the dialog with overloaded constructor (in order to pass some valued to that dialog)..Please help me.

-----------------------------
I am a beginner