home *** CD-ROM | disk | FTP | other *** search
/ Amiga News 95 / Amiga News 95.iso / dpat / dpat13 / sources / sources.lha / application.c next >
Encoding:
C/C++ Source or Header  |  1992-09-16  |  2.8 KB  |  94 lines

  1.  
  2.  
  3. /*
  4. **      $Application name : DP Managing $
  5. **      $Revision : 6.51 $
  6. **      $Release : 2.21 $
  7. **      $Date : 92/09/16 $
  8. **
  9. **
  10. **
  11. **      (C) Copyright 1992 David Scrève
  12. **          All Rights Reserved
  13. */
  14.  
  15. /* this software was compiled with SAS/C 5.10b Compiler. */
  16. /* to Recompile this C source code, you need the include V37 or higher */
  17. /* Contact the Commodore Amiga Technical Support for more information */
  18.  
  19. #include <stdio.h>
  20. #include <string.h>
  21. #include "Messages.h"
  22. #include "structures.h"
  23. #include "variables_globales.h"
  24. #include "visual_global.h"
  25.  
  26.  
  27. main(argc,argv)
  28. int argc;
  29. char **argv;
  30. {
  31.  LONG UserChoose;
  32.  
  33.  SetUpLanguage(FRANCAIS);
  34.  UserChoose=MOD_CONSULTATION;
  35.  if (Openinglibrary(argc))
  36.    {
  37.     if (FindAppliName(argc,argv))
  38.        {
  39.         if (InitEnvVar())
  40.              {
  41.               SetUpLanguage(Langage);
  42.               if (!HardwareRequirement())
  43.                     SingleRequest(NULL,"DP Managing Warning",message[113]);
  44.                   else
  45.                     {
  46.                      if (ouvre_ecran()!=NULL)
  47.                          SingleRequest(NULL,"DP Managing Warning",message[114]);
  48.                        else
  49.                          {
  50.                           DemoVersion=!MagicCode();
  51.                           while (UserChoose!=NULL && UserChoose!=MOD_QUIT)
  52.                                switch (UserChoose)
  53.                                  {
  54.                                   case MOD_STATISTIQUES :
  55.                                        UserChoose=ModStatistiques();
  56.                                      break;
  57.  
  58.                                    case MOD_MAINTENANCE :
  59.                                        UserChoose=ModMaintenance();
  60.                                      break;
  61.  
  62.                                    case MOD_CONSULTATION :
  63.                                        UserChoose=ModConsultation();
  64.                                      break;
  65.  
  66.                                    case MOD_EMPRUNTS :
  67.                                        UserChoose=ModEmprunts();
  68.                                      break;
  69.  
  70.                                    case MOD_AJOUT :
  71.                                        UserChoose=ModAjout();
  72.                                      break;
  73.  
  74.                                  };
  75.                           ferme_ecran();
  76.                           EmptyAllList();
  77.                          }
  78.                     }
  79.              }
  80.            else
  81.               SingleRequest(NULL,"DP Managing Warning",message[115]);
  82.        }
  83.     fermetoutlibrary();
  84.    }
  85.  if (argc!=NULL)
  86.       {
  87.        printf("\n\nFrancais : L'application doit être lancée à partir du WorkBench.\nEnglish : This material must be launched from Workbench.\n\n");
  88.        printf("\n Press Return to continue...");
  89.        getchar();
  90.        printf("\n\nSee you Later...\n\n\n");
  91.       }
  92. }
  93.  
  94.