home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Mother of All Windows Books
/
CD-MOM.iso
/
cd_mom
/
newsletr
/
winprogj
/
wpjv1n2
/
winmain.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-27
|
982b
|
48 lines
//*********************************************************
//*
//* 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 */