"MyDlg" is a dialog class derived from CDialog
"pg_price" is a derived CPropertyPage
on pressing a button pg_price(derived from CPropertyPage), domodal is called
Code:
void pg_price::OnBUTTON()
{
MyDlg MyDlg_obj;
MyDlg_obj.DoModal();
}
OnInitDialog of MyDlg (derived from CDialog):
Code:
BOOL MyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
now, the problem is that on winxp there isnt any problem. MyDlg_obj.DoModal(); displays the resource of MyDlg
but on win98se, the whole application hangs and become non-responsive upon clicking the button
MyDlg never appeared
so i ran a debugger and found out that the application has no problem running up to "BOOL MyDlg::OnInitDialog()" and returns it without any problem. I hit "f5" again and the application hangs. no assert/buffer overflow problems error messages were given, the whole application simply hangs there. i believe that's because the user interface thread got into something it cant get out of
doing a "step over" on the debugger in win98se i got the following
http://img182.imageshack.us/img182/7687/step4em.gif
doing a "step over on debugger in winxp
http://img34.imageshack.us/img34/9697/winxp0ok.jpg
i really got no idea how this happened
how is it possible that this app works well on winxp but not win98se?
i need that application on win98se platform
using vc++6.0 SP6
win98se/winxp
please assist