home *** CD-ROM | disk | FTP | other *** search
- /*** expect.c ***/
-
- #include "windows.h"
- #include "expect.h"
-
- /* globals */
-
- extern HWND hMainWnd;
- extern int OnLineFlag;
-
- int ExpectOnLine()
- {if(!OnLineFlag)
- {ErrorMessage("Must be ONLINE");
- return FALSE;
- }
- return TRUE;
- } /* end ExpectOnline */
-
- int ExpectOffLine()
- {if(OnLineFlag)
- {ErrorMessage("Must be OFFLINE");
- return FALSE;
- }
- return TRUE;
- } /* end ExpectOffline */
-
- void ErrorMessage(char *MsgPtr)
- {
- MessageBox(hMainWnd,MsgPtr,"ERROR",MB_ICONEXCLAMATION | MB_OK);
- }