Re: Help.

From: [at]} <robert.d.campbell{>
Date: Thu, 10 May 2001 10:33:09 +0100 (BST)

>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 ???.



--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To 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
q8 (
Received on Thu May 10 2001 - 09:33:09 UTC

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