Re: How to change startup form in vc++ MFC

Tech-Archive recommends: Fix windows errors by optimizing your registry





i've write,

Cform2Dlg dlg;
but compiler says it doesnot found any classes

Cform2Dlg dlg is undeclared identifier

how i can correspond my dialog class with form2? plz tell me in detail

thank you to help me so much and sorrry(for disturbing you too much) i
am very new so i don't understnad those thinks that much but really
thankful to you.


Ajay Kalra wrote:
You need to change the following line of code:

CMultiformsDlg dlg; // this should change to CForm2 (Your dialog
class)

It should become:

CYourFormClassDlg dlg;

If you dont a dialog class corresponding to Form2, you will need to
create one. You can either use the wizard or do it by hand.

.


Quantcast