home *** CD-ROM | disk | FTP | other *** search
- //*********************************************************
- //*
- //* winmain.c: testing DLL
- //*
- //*********************************************************
-
- #define NOCOMM
- #define _WINDOWS
-
- #include <windows.h>
- #include "rodsapp.h"
-
- int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine,
- int nCmdShow)
- {
-
- /* local variables */
- MSG msg;
-
- /* if no prev. instance initialize */
- if(!hPrevInstance) {
-
- /* call initialization function */
- if(!InitApplication(hInstance))
- return(FALSE);
-
- }
-
- /* perform initialization for instances */
- if(!InitInstance(hInstance, nCmdShow))
- return(FALSE);
-
- /* fetch messages for this application */
- while(GetMessage(&msg, NULL, 0, 0)) {
-
- /* translate codes */
- TranslateMessage(&msg);
-
- /* dispatch the messages to the appropriate window functions */
- DispatchMessage(&msg);
-
- }
-
- /* return the value from PostQuitMessage */
- return(msg.wParam);
-
- } /* WinMain */
-