home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 11.ddi / OWLSRC.PAK / WINMAIN.CPP < prev   
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.1 KB  |  27 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   source\owl\winmain.cpp
  4. //   Implementation of WinMain for user exes
  5. //----------------------------------------------------------------------------
  6. #include <owl\owlpch.h>
  7. #include <owl\applicat.h>
  8.  
  9. DIAG_DECLARE_GROUP(OwlApp);        // General Application diagnostic group
  10.  
  11. //
  12. // Default WinMain calls OwlMain, after setting params into TApplication
  13. //
  14. int PASCAL
  15. WinMain(HINSTANCE instance, HINSTANCE prevInstance, char far* cmdLine, int cmdShow)
  16. {
  17.   TRACEX(OwlApp, 0, "WinMain(" << hex << UINT(instance) << ", " << 
  18.                                   hex << UINT(prevInstance) << ", \"" << 
  19.                                   TResId(cmdLine) << "\", " << 
  20.                                   cmdShow << ") called");
  21.   TApplication::SetWinMainParams(instance, prevInstance, cmdLine, cmdShow);
  22.   int retVal = OwlMain(_argc, _argv);
  23.   TRACEX(OwlApp, 0, "WinMain() returns " << retVal);
  24.  
  25.   return retVal;
  26. }
  27.