From: "Beard, Frank" <beardf@spawar.navy.mil>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: RE: About lauching files on Win98
Date: Mon, 12 Feb 2001 17:21:51 -0500
Date: 2001-02-12T17:21:51-05:00 [thread overview]
Message-ID: <mailman.982016650.19433.comp.lang.ada@ada.eu.org> (raw)
Stéphane,
The simplest way to launch the program from the application is to use
the WinExec API. It has been superceded by the more complicated
CreateProcess API, but I doubt if it will go away any time soon,
if ever.
Depending on your Windows API binding (we are using Aonix which I
think uses Intermetrics' binding), it will look something like:
command : string := "iexplore.exe help.html" & ASCII.NUL;
status : WinApi.UINT := 0;
begin
status := WinApi.WinExec(lpCmdLine => To_LPCSTR(command),
uCmdShow => WinApiConstants.SW_HIDE);
I don't think you will need the pathname for Internet Explorer,
but you will need to supply it for "help.html".
Hope this helps.
Frank
-----Original Message-----
From: Stéphane Perret [mailto:stephane.perret@maths.unine.ch]
Sent: Monday, February 12, 2001 9:39 AM
To: comp.lang.ada@ada.eu.org
Subject: About lauching files on Win98
Hello everybody,
I doing a program and in the purpose of simplicity I prefer to do HTLM
files for the
help stuff. The trick is to lauch the file, say HELP.HTML directly from
the program with a command that I do not know.
Someone gave me a procedure that lauch files by using the START program,
the heck is that during the process a very ugly dos window appears.
Please, Help.
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada
next reply other threads:[~2001-02-12 22:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-12 22:21 Beard, Frank [this message]
2001-02-13 11:33 ` About lauching files on Win98 John English
-- strict thread matches above, loose matches on Subject: below --
2001-02-16 0:17 Beard, Frank
2001-02-12 14:39 Stéphane Perret
[not found] ` <96o913$m1loc$1@ID-76083.news.dfncis.de>
2001-02-23 8:37 ` Stephane Perret
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox