Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to start up a html file from a Delphi application...

188 views
Skip to first unread message

MARTIN LINDGREN

unread,
Mar 8, 1998, 3:00:00 AM3/8/98
to

Hi Delphi people,

I would like to start up another application (exe.file)
inside my Delphi application. How do I manage that?

I'm also wondering how to start up a html file inside
delphi. I guess that the web browser would be great
to handle help files.

A simple coding example would be great...

Regards,
-----------------------------------------------------------------
Martin Lindgren, Sweden
e-mail: martin....@mbox302.swipnet.se
-----------------------------------------------------------------

James Battersby

unread,
Mar 8, 1998, 3:00:00 AM3/8/98
to

The easy way is to use the windows function ShellExecute, e.g.

ShellExecute(Application.MainForm.Handle, 'open', 'c:\my
documents\index.htm','','',SW_SHOWNORMAL);

This function will open any registered file type (e.g .txt., .htm, .doc)
appropriately. You need to use the ShellApi unit for it to compile. See
Win32.hlp for more information.

0 new messages