On 9/18/05, Melchiorre Caruso <[EMAIL PROTECTED]> wrote:
> Hi,
>
> could anybody explain to me how to "open a files with associated
> application"?
>
> With Delphi I use ShellExecute function:
>
> ShellExecute (0, 'open', PChar (FileName), nil, PChar (PathName),
> SW_SHOW);
>
> but I search a function, that works on both OS (Linux and Windows);
>
>
> Thank you
>
> ---
> Melchiorre Caruso
>From what i know there is none, in Linux you should have shell() but i
don't know if it works for this and there you have different
associations in KDE, GNOME and others, you can basically check where
the associations file is and load the app that is set to open that
kind of file, you can see Lazarus itself does a serch for browsers
when invoking help on Linux. Maybe someone finds a better method to
load associated apps :)
Razvan
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives