00001 #ifndef __WINMAIN_H__ 00002 #define __WINMAIN_H__ 00003 00004 #include <stdio.h> 00005 #include <stdlib.h> 00006 #include <string.h> 00007 #include <stdarg.h> 00008 #include <windows.h> 00009 #include <Winuser.h> 00010 #include <CommCtrl.h> 00011 #include "version.h" 00012 00013 #include "wcommon.h" 00014 #include "FilesAssociations.h" 00015 #include "SciEnv.h" 00016 00017 /*-----------------------------------------------------------------------------------*/ 00018 /* Les Definitions */ 00019 /*-----------------------------------------------------------------------------------*/ 00020 00021 #define putenv(x) _putenv(x) 00022 00023 /* limits */ 00024 //#define MAXSTR 255 00025 #define MAXPRINTF 512 00026 00027 00028 00029 #define MIN_STACKSIZE 180000 00030 00031 #define MAXCMDTOKENS 128 00032 00034 #define isterm(f) (f==stdin || f==stdout || f==stderr) 00035 00036 #define MORESTR "[More (y or n ) ?] " 00037 00038 /* Les Variables Globales */ 00039 /*-----------------------------------------------------------------------------------*/ 00040 extern TW textwin; 00041 extern GW graphwin; 00042 extern MW menuwin; 00043 00044 extern HINSTANCE hdllInstance; 00045 00046 static int startupf = 0; 00047 static int nointeractive = 0; 00048 static int show_logo = 1; 00049 static int memory = MIN_STACKSIZE; 00050 static int my_argc = -1; 00051 00052 /*-----------------------------------------------------------------------------------*/ 00053 /* Les Fonctions */ 00054 /*-----------------------------------------------------------------------------------*/ 00055 int Pause (LPSTR str); 00056 void add_sci_argv(char *p); 00057 int sci_iargc(); 00058 int sci_getarg(int *n,char *s,long int ls); 00059 int InteractiveMode (); 00060 int C2F(showlogo) (); 00061 void WinExit (void); 00062 void CreateSplashscreen(void); 00063 /* Tue le Process Scilex */ 00064 void Kill_Scilex(void); 00065 BOOL ForbiddenToUseScilab(void); 00066 00067 int WINAPI Windows_Main (HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow); 00068 int Console_Main(int argc, char **argv); 00069 int IsNoInteractiveWindow(void); 00070 00071 char *stristr(const char *psz,const char *tofind); 00072 /*-----------------------------------------------------------------------------------*/ 00073 #endif /* __WINMAIN_H__ */