Re: Graphics on buttons / Loading extern

Don More (100337.1424@CompuServe.COM)
25 Aug 96 07:00:13 EDT

In-Reply-To: <Graphics on buttons / Loading exter>

Regarding launching external programs, have a look at KERNEL32.WinExec
which is an interface into the standard windows function call.
I think that might be what you are looking for although it is not a
standard Obefon/F procedure.

PROCEDURE Notepad*;
VAR
out : LONGINT;
str : KERNEL32.StringPtr;
src : ARRAY 100 OF CHAR;
BEGIN
COPY('c:\win95\notepad.exe',src);
str := src;
out := KERNEL32.WinExec(str,1);
END Edit

I havent got the windows doc to hand, but with a second arg of 1 the app
starts up normallly and with a second arg of 2, the app starts up
minimized.

Hope this helps,

Don