home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / main.cpp < prev    next >
C/C++ Source or Header  |  1997-03-21  |  2KB  |  85 lines

  1. /* @(#)Z 1.5 com/src/docshell/main.cpp, odshell, od96os2, odos29712d 97/03/21 17:41:22 (96/10/29 09:24:41) */
  2. //====START_GENERATED_PROLOG======================================
  3. //
  4. //
  5. //   COMPONENT_NAME: odshell
  6. //
  7. //   CLASSES: none
  8. //
  9. //   ORIGINS: 27
  10. //
  11. //
  12. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //   All Rights Reserved
  14. //   Licensed Materials - Property of IBM
  15. //   US Government Users Restricted Rights - Use, duplication or
  16. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //       
  18. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //   OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. //====END_GENERATED_PROLOG========================================
  27. //
  28.  
  29.  
  30. #include "rlshell.h"
  31.  
  32.  
  33. /**************************************************************************
  34.  *
  35.  *  Name       : main()
  36.  *
  37.  *************************************************************************/
  38. int main (int argc, char *argv[])
  39. {
  40.     int returnValue = FALSE;
  41.     // InitODMemory();
  42.  
  43.     // Create a RealShell and start it
  44.     RealShell *shell = new RealShell;
  45.     if (shell)
  46.         returnValue = shell->go(argc,argv);
  47.  
  48.     return returnValue;
  49. }
  50.  
  51.  
  52.  
  53.  
  54. #ifdef _PLATFORM_WIN32_
  55.  
  56. #include <windows.h>
  57. #include "rlshell.h"
  58.  
  59. int       WindowDisplayMode;
  60. HANDLE    ApplicationInstance;
  61.  
  62. extern int  _argc;
  63. extern char **_argv;
  64.  
  65.  
  66. int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  67.                          LPSTR CmdLine, int CmdShow)
  68. {
  69.     int returnValue = FALSE;
  70.     InitODMemory();
  71.  
  72.     // For now make hInstance and CmdShow global
  73.     ApplicationInstance = hInstance;
  74.     WindowDisplayMode = CmdShow;
  75.  
  76.     // Create a RealShell and start it
  77.     RealShell *shell = new RealShell;
  78.     if (shell)
  79.         returnValue = shell->go(_argc, _argv);
  80.  
  81.     return returnValue;
  82. }
  83.  
  84. #endif    // _PLATFORM_WIN32_
  85.