//#include "WaitDlg.h" #include "CmdWaitDlg.h" void OnViewWaitDlg() { long i,x; cWaitDialog dlg; dlg.m_Text = "Calculating...please wait"; dlg.Show(); i = 0; for (x = 0; x <1000000000;x++) i = x * x; dlg.Close(); }