home *** CD-ROM | disk | FTP | other *** search
-
-
- HWND ghWnd; /* handle to main window */
- OMFHND ghOMF; /* handle to the OMF */
- char gFile[MAXROOTFILENAMELENGTH + 1];
- /* gFile is the file name supplied by NewWave for data. It is arbitrary */
-
- int PASCAL WinMain( hInstance, hPrevInstance, lpszCmdLine, cmdShow)
- HANDLE hInstance,
- hPrevInstance;
- LPSTR lpszCmdLine;
- int cmdShow;
- {
- ...
- /* class create if needed */
- ...
- ghWnd = CreateMainWindow( hInstance); /* call function to create main window */
- /* NOTE: CreateMainWindow will be defined further down */
- ghOMF = ghOMF( ghWnd, lpszCmdLine, (LPSTR) gFile);
- ...
- /* message loop (while GetMessage) */
- ...
- return( 0);
- } /* end of example code fragment */
-
-
-