home *** CD-ROM | disk | FTP | other *** search
- SGPC 5.04 032#000001043 22.09.2002 12:13:13 StructNo 1 1
- # include <sgpbalt.h>
-
- // Globální prom╪nné
-
- // Globální makra
- -o1-Globals
- -c1-Globals
- ===Globals
- /*-hf(*/
- /*-hf-*/
- int Run( string strToExec )
- /*-hf-*/;
- void main( void )
- /*-hf)*/;
- ;-h---------------------------------------------------------------------------
- int Run( string strToExec )
- -s--Run ■ 4 -2 -30 3
- Run
- 1!
- -o1----------------------SEZNAM OPERAC╓------------TENTO ⁿ╡DEK NEM╖NIT!-------
- 1
- TxtPiτⁿet╪zec("\n spouτ£ím ['"+strToExec+"'] ");
- int x = TxtPoziceX();
- int y = TxtPoziceY();
- DOSProve╘(strToExec);
- if(!(x != TxtPoziceX() || y != TxtPoziceY())){
- TxtPiτⁿet╪zec("\n stikn╪te libovolnou klávesu pro návrat... ");
- ¼ekejNaKlávesu();
- return 1;
- }
- return 0;
-
- -c1----------------------SEZNAM PODM╓NEK-----------TENTO ⁿ╡DEK NEM╖NIT!-------
- =SP---------------------------------------------------------------------------
-
- ;-h---------------------------------------------------------------------------
- void main( void )
- -s--SHELL ■ 4 -2 -29 3
- SHELL
- 1!
- -o1----------------------SEZNAM OPERAC╓------------TENTO ⁿ╡DEK NEM╖NIT!-------
- 1
- TxtPiτⁿet╪zec("Upozorn╪ní : \n Aplikace màºe pokraƒovat aº po ukonƒení okna prohlíºeƒe (Omezení MS-DOS)\n");
- long sFile = SouborOtev²i("*\\designer.dat",SouborP²ístup¼tení|SouborP²ístupTextov∞|SouborP²ístupZápis);
- string strExec;
- Soubor¼tiSⁿet╪zec(sFile,strExec);
- string url;url = DOSArgument(1);
- string s = ProgramCesta();
- if(url == "207")url = "http:\\www.softdesigner.euweb.cz\\help\\?ref=APP1.0";
- else if(url == "205") url = StrNastavVelikost(s,StrDélka(s)-1) + "DESIGNER.DIR\\HELP\\default.htm";
-
-
- if(strExec != "")if(Run(strExec+" "+url))return;
- if(Run("iexplore.exe "+url))return;
- if(Run("C:\\PROGRA~1\\INTERN~1\\iexplore.exe "+url))return;
- if(Run("start.exe "+url))return;
-
- // error ...
- while(1){
- TxtPiτⁿet╪zec("Programu se nepoda²ilo nalézt internetov∞ prohlíºec. \nZadejte cesta: ");
- string ⁿádek="C:\\PROGRA~1\\INTERN~1\\iexplore.exe";
- static int KlávesyUkonƒení[] = { KlEnter, 0 };
- Txtⁿádkov∞Editor(ⁿádek,255,64,-1,KlávesyUkonƒení);
- if(Run(ⁿádek+" "+url)){
- SouborNastavPozici(sFile,0,SouborPoziceOdZaćtku);
- SouborPiτⁿet╪zec(sFile,ⁿádek);
-
- return;
- }
-
- else TxtPiτⁿet╪zec("\n");
- }
- -c1----------------------SEZNAM PODM╓NEK-----------TENTO ⁿ╡DEK NEM╖NIT!-------
- =SP---------------------------------------------------------------------------
-
- // Konec souboru
-