home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / 3DTOSHI2.ZIP / mpgui / include / mpgui.h < prev   
Encoding:
C/C++ Source or Header  |  1996-03-23  |  1.1 KB  |  39 lines

  1.  
  2. // mpgui.h
  3. //
  4. // Copyright (c) 1995 by Toshiaki Tsuji, all rights reserved.
  5.  
  6. #ifndef __MPGUI_H__
  7. #define __MPGUI_H__
  8.  
  9. #include "stdgfx.h"
  10. #include "guiapp.h"
  11.  
  12. VOID ProcessArgs ( int argc, char **argv );
  13. VOID InitApp ();
  14. LONG GetNumArgs ();
  15. VOID GetArg ( LONG Index, STRING Str );
  16. VOID PrepareArg ( STRING args );
  17.  
  18. #if defined (__FORWINDOWS__)
  19.   #define MAINPROGRAM int PASCAL WinMain ( HINSTANCE hIns, HINSTANCE hPrevIns, LPSTR lpCmdLine, int nCmdShow )
  20.   #define BEGIN { hInstance = hIns; hPrevInstance = hPrevIns; PrepareArg (lpCmdLine); CmdShow = nCmdShow; InitApp ();
  21.   #define END   }
  22. #elif defined (__FOROS2__)
  23.   #define MAINPROGRAM int main ( int argc, char **argv )
  24.   #define BEGIN { ProcessArgs ( argc, argv ); InitApp ();
  25.   #define END   }
  26. #elif defined (__FORDOS__)
  27.   #define MAINPROGRAM int main ( int argc, char **argv )
  28.   #define BEGIN { ProcessArgs ( argc, argv );
  29.   #define END   }
  30. #elif defined (__FORUNIX__)
  31.   #define MAINPROGRAM int main ( int argc, char **argv )
  32.   #define BEGIN { ProcessArgs ( argc, argv );
  33.   #define END   }
  34. #endif
  35.  
  36. #endif
  37.  
  38.  
  39.