*dlg
MyAppDlg::PostMessageToDB()
MyAppDlg::onTimer()
"Arrived"
MyAppDlg::newMessage()
PostMessageToDB()
AfxMessageBox( errorMsg, MB_RETRYCANCEL |MB_ICONERROR| MB_SYSTEMMODAL);
var