From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d4d10419e687b087 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-15 16:20:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: About lauching files on Win98 Date: Thu, 15 Feb 2001 19:17:58 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 982282753 49437 137.194.161.2 (16 Feb 2001 00:19:13 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 16 Feb 2001 00:19:13 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5292 Date: 2001-02-15T19:17:58-05:00 Well, I said simplest not best. The solution I gave works fine on Windows 98, but your solution is probably "better" and more portable across the Windows platforms. And, I really wasn't trying to assume that he had Internet Explorer. If it wasn't on his system he could simply substitute his browser of choice. It was just an example of what he could put in the string, and hopefully he could figure out how to do the substitution. If not, he shouldn't be touching a computer, much less programming it. However, since he specified Win98, if I were to assume a browser, I would be 99.9% safe in assuming Internet Explorer would be on his system, unless he intentionally removed it. But, that wasn't my point anyway. The same reason I dislike CreateProcess is the same reason I dislike ShellExecute. Because of the excessive number of parameters for doing something simple. Granted, ShellExecute has less parameters than CreateProcess. So, in most cases I will still opt for WinExec because of it's simplicity. Frank -----Original Message----- From: John English [mailto:je@bton.ac.uk] Sent: Tuesday, February 13, 2001 6:34 AM To: comp.lang.ada@ada.eu.org Subject: Re: About lauching files on Win98 I beg to differ. It is better to start the default browser using ShellExecute than to assume the user has IE installed and that the installation directory is in the user's path.