home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
201
/
WPJV1N2.ZIP
/
HAXTON.ZIP
/
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 */