
please help with wizard and property sheet
I'm trying to create a wizard that will eventually be a FrontPage
wizard. I haven't gotten to the FrontPage part yet, because....
I've got the pages created, designed and all, but when I run the program
(just to look at the default behavior), I get an Assertion error. If I
ignore it, the program works fine. Debugging has left me stumped as
well. I have traked the error down to the DoModal call for the property
sheets. the code looks someting like...
int nreturn;
CPage1 page1;
CPage2 page2;
CPropertysheet prop;
prop.AddPage(&page1);
prop.AddPage(&page2);
prop.SetWizardMode();
nreturn = prop.DoModal();
if(nreturn == IDCANCEL)
{
...
Quote:
}
Like I said.. rem the DoModal() and things are fine (except no property
of course). The Assertion says it is at line 224 of dlgprop.cpp. I
checked that line and it is an assertion of this for one of the pages.
Am I doing something wrong?? My CPage classes were ClassWizard created.
BTW. Using VC++ 4.0...
Thanks, Jason