RE: Displaying HTML
- Posted by Brian Broker <bkb at cnw.com> Feb 06, 2004
- 476 views
Not true on XP... typing a file name in a cmd window will open it using it's associated application. However, it's unwise to assume everybody's running XP... -- Brian Derek Parnell wrote: > > > ----- Original Message ----- > From: "Isaac Raway" <isaac-topica at blueapples.org> > To: <EUforum at topica.com> > Subject: Re: Displaying HTML > > > > Juergen Luethje wrote: > > > > > > > >isaac-topica wrote: > > > > > > > > >>Actually, this should work just fine. > > >> > > >> > > >What do you mean by "should"? > > >I tested it, and it did *not* work on my system. > > >Did you actually test it? If you did so, on what system? > > >Which Windows version, and which Euphoria version? > > >What *exactly* did you do? Facts please ... > > > > > > > > I have called this API from C++ and Visual Basic. It works. If it didn't > > > > work for you, then there is most likely something misconfigured in your > > registry. > > What *API* are you talking about? The EUPHORIA routine called > "system_exec" has nothing to do with any Windows API. It is equivalent > to opening a DOS window and typing in the parameter at the DOS prompt. > Thus 'system_exec("ReadMe.html", 2)' is like typing "ReadMe.html" at a > DOS prompt. IT does NOT open a browser to display the html file. If you > read the Euphoria documentation for this routine it says that the > parameter "must be a command to run an executable program" - and a HTML > file is not one of those. > > The fact that C++ and VB have a 'system_exec' type of routine does NOT > mean that they are the same as Euphoria's routine. > > The Windows API routine called 'shellexecute' is most likely what the VB > and C++ routines use. > > -- > Derek > >