I have two compiled programs, program A and program B, both compiled with Turbo.

I want to launch Program B as a background job from within Program A and Program A will need to pass instructions to program B every now and then.  Program B should not use too much processing power.

What is the best way of implementing this on all implementations of the QL??

I have tried setting up a pipe, using:

         EXECUTE #3 TO win1_ProgramB_exe ! 2

but am having problems getting Program B to read the command strings from #14 (which according to the Turbo manual is the channel Program B should have open when it is executed to read the pipe).

The ! 2 at the end of the command is to set the priority of Program B.

Methinks this is where all programmers have a problem with multitasking and compatability between the various operating systems - I know I could use SEND_EVENT and WAIT_EVENT on an smsq/e system, but this will not work on earlier machines (even with the pointer environment loaded, will it??).

If anyone has any proven examples which they could send me (I know it is easier with machine code tasks), then that would be a great help.

--
Rich Mellor
RWAP Software
35 Chantry Croft, Kinsley, Pontefract, West Yorkshire, WF9 5JH
TEL: 01977 610509
http://hometown.aol.co.uk/rwapsoftware

Reply via email to