Board index » cppbuilder » Opening New Form in MDIApp
Kiwi
![]() CBuilder Developer |
Opening New Form in MDIApp2005-03-03 11:12:35 AM cppbuilder19 When I do this I get a violation error. if (ExtractFileExt(OpenDialog->FileName).LowerCase() == ".xms" ) { MSXCBEForm = new TMSXCBEForm(this); } For some reason MSXCBForm = Null, What do I need to do to create this new form. Additionally, what I really want to once I've created the new form is to open it with information from the OpenDialog as shown below. But again I am not understanding what is going because it doesn't work. if (ExtractFileExt(OpenDialog->FileName).LowerCase() == ".xms" ) { MSXCBEForm = new TMSXCBEForm(this); MSXCBEForm->OpenMSXFile(fIn, ansiFileName); } I would appreciate any guidance or suggestions on how to open a new form and execute one of its functions with some parameters. Thanks, Kiwi |