home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_03 / 2n03019b < prev    next >
Text File  |  1991-01-29  |  688b  |  27 lines

  1.  
  2.  
  3. HWND        ghWnd;    /* handle to main window */
  4. OMFHND    ghOMF;    /* handle to the OMF */
  5. char        gFile[MAXROOTFILENAMELENGTH + 1];
  6.     /* gFile is the file name supplied by NewWave for data. It is arbitrary */
  7.  
  8. int PASCAL WinMain( hInstance, hPrevInstance, lpszCmdLine, cmdShow)
  9. HANDLE    hInstance,
  10.         hPrevInstance;
  11. LPSTR        lpszCmdLine;
  12. int        cmdShow;
  13. {
  14. ...
  15. /* class create if needed */
  16. ...
  17. ghWnd = CreateMainWindow( hInstance);    /* call function to create main window */
  18.         /* NOTE: CreateMainWindow will be defined further down */
  19. ghOMF = ghOMF( ghWnd, lpszCmdLine, (LPSTR) gFile);
  20. ...
  21. /* message loop (while GetMessage) */
  22. ...
  23. return( 0);
  24. }    /* end of example code fragment */
  25.  
  26.  
  27.