|
I wrote a small program for phone billing with MFC. There is only one dialog box. The program compiles and links are fine. The runtime is normal, and the content in the Access database is correct, but it always reports an error when exiting:
Debug Assertion Failed!
Programme: ..... (path name)
File: afx.inl
Line: 122
Here is the code for the exit button:
void CFeeCountingDlg :: OnButton1out ()
{
// Judge the button status
if (Begin_Button_State! = FALSE&&Finish_Button_State == FALSE)
{
KillTimer (0); // end the clock
CDialog :: OnCancel (); // Quit (it is an error when debugging this sentence)
}
else
MessageBox ("Calling ...");
// TODO: Add your control notification handler code here
Ranch
} |
|