489 Subj : Re: error in dialog box (owl) To : borland.public.cpp.borlandcpp From : Rejean Bouchard Date : Tue Jul 05 2005 12:29 pm There are a few errors in the code: void TFenMDIClient::SetupWindow() { TWindow::SetupWindow(); boite1* b_un = new boite1(this,IDD_DIAL, "Mot de passe"); b_un->Execute(); delete b_un; //boite1(this,"Mot de passe:").Execute(); }; 1- you should define an ID for your Dialog (IDD_DIAL) 2- you should call a constructor that uses that ID to create the Dialog 3- boite1 has not been create in your code. yous have to create one this way I made the program calliing the Dialog. Hope this can help / I upload the project in the attachment. J'espere que mes suggestions pourront aider. Rejean Morosh a écrit : > Hello: > I've began a MDI owl project, and I like to ask for a password at startup, > I've made a dialog box (boite1) in the attached project. when I invoke it at > the first setupwindow, the program stopped. (line 94, showed in comments). > thre files are uploaded at "borland.public.attachements" > Could someone told me what's wrong? > > thank you > > Maurice . 0