Re: Help.

From: [at]} <Werner>
Date: Thu, 10 May 2001 12:16:55 +0200

> >How can man run another application under Black Box?
>
> The code below tries to open Word with a document, and if it
> fails plays a horrible tune.
>
> Regards
>
> Robert Campbell
>
> MODULE ???;
>
> IMPORT WinApi, WinMM;
>
> VAR
> cmd* : WinApi.PtrSTR;
>
> PROCEDURE RunWord (cmd : WinApi.PtrSTR);
> BEGIN
> IF WinApi.WinExec(cmd, WinApi.SW_SHOW) = 0 THEN
> IF WinMM.PlaySound ('alert.wav', WinApi.NULL, WinMM.SND_ASYNC) = 5 THEN
> END;
> END;
> END RunWord;
>
> BEGIN
> cmd := 'C:\Program Files\Microsoft Office\Office\WINWORD.EXE c:\mydoc.doc';
> END ???.

Another way is to use HostDialog.Start
(possibly easier, but achieves the same)

-- 
mit freundlichen Grüssen
Werner Braun
O³ Software GmbH & Co. KG * Eichkamp 1 * D-24217 Schönberg
http://www.o3-software.de * Fon: 04344 414171 * Fax: 04344 5385
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Thu May 10 2001 - 10:16:55 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:44 UTC