лас ДОДАТОК ==================== APPLICATION: public CWinApp
{: InitInstance ();
};
// ===== конструктор Ініціалізація пріложеніяAPPLICATION :: InitInstance ()
{_pMainWnd = new WINDOW; _pMainWnd -> ShowWindow (m_nCmdShow); _pMainWnd -> UpdateWindow (); TRUE;
}
// ===== створення екземпляра додатку ==================== TheApplication;
// файл event.h
# include
# include "windows.h" namespace std; event {: message; type; st;: ()
} (int Y, int M, int D, int H, int Min, int Sec, CString the_type, CString the_message)
{. resize (the_type.GetLength ()); (CP_ACP, 0, the_type, -1, & type [0], type.size (), NULL, NULL);. resize ( the_message.GetLength ()); (CP_ACP, 0, the_message, -1, & message [0], message.size (), NULL,
} GetMessage ()
{the_mess = message.c_str (); the_mess;
} GetTime ()
{st;
} GetType ()
{the_type = type.c_str (); the_type;
} operator> (event a)
{(st.wYear> a.GetTime (). wYear) true; if (st.wMonth> a.GetTime (). wMonth && st.wYear> = a.GetTime ( ). wYear) true; if (st.wDay> a.GetTime (). wDay && st.wMonth> = a.GetTime (). wMonth && st.wYear> = a.GetTime (). wYear) true; if (st.wHour> a.GetTime (). wHour && st.wDay> = a.GetTime (). wDay && st.wMonth> = a.GetTime (). wMonth & ; & st.wYear> = a.GetTime (). wYear) true; if (st.wMinute> a.GetTime (). wMinute && st.wHour> = a.GetTime (). wHour && ; st.wDay> = a.GetTime (). wDay && st.wMonth> = a.GetTime (). wMonth && st.wYear> = a.GetTime (). wYear) true; if ( st.wSecond> a.GetTime (). wSecond && st.wMinute> = a.GetTime (). wMinute && st.wHour> = a.GetTime (). wHour && st.wDay> ; = a.GetTime (). wDay && st.wMonth> = a.GetTime (). wMonth && st.wYear> = a.GetTime (). wYear) true; return false;
} operator == (event a)
{(st.wSecond == a.GetTime (). wSecond && st.wMinute == a.GetTime (). wMinute && st.wHour == a.GetTime (). wHour && st.wDay == a.GetTime (). wDay && st.wMonth == a.GetTime (). wMonth && st.wYear == a.GetTime () . wYear) true; return false;
}
};