Why my MDI application closes when I close a dialog box inside?
-
Hi, I am working on a MDI application. I use CDaoDatabase (so I include AFXDAO.h) for my application. After doing some manipulation wiht the data, I close my dialog box, which has a "Close" button with the ID "IDCANCEL". So, when I close my dialog box, the whole application is getting closed. But the dialogs which are not using this afxdao.h is working fine. That means, it closes only the dialog and not the application. Could anyone, please help me in this regard. PS: I am using VC++ 6.0. Thanks in advance. Regards saravana
-
Hi, I am working on a MDI application. I use CDaoDatabase (so I include AFXDAO.h) for my application. After doing some manipulation wiht the data, I close my dialog box, which has a "Close" button with the ID "IDCANCEL". So, when I close my dialog box, the whole application is getting closed. But the dialogs which are not using this afxdao.h is working fine. That means, it closes only the dialog and not the application. Could anyone, please help me in this regard. PS: I am using VC++ 6.0. Thanks in advance. Regards saravana
-
Hi, I am working on a MDI application. I use CDaoDatabase (so I include AFXDAO.h) for my application. After doing some manipulation wiht the data, I close my dialog box, which has a "Close" button with the ID "IDCANCEL". So, when I close my dialog box, the whole application is getting closed. But the dialogs which are not using this afxdao.h is working fine. That means, it closes only the dialog and not the application. Could anyone, please help me in this regard. PS: I am using VC++ 6.0. Thanks in advance. Regards saravana