However, one of Wolfgang's machine code procedures amends its own parameters. I therefore decided to compile the secondary job (QWord_Music), using Qliberator, bearing in mind that the main program (QWord) is compiled with Turbo.
Now comes the interesting part - I need a set of pipes between QWord and QWord_Music to pass details.
This was easy when both programs were compiled with Turbo.
QWord:
OPEN #4,pipe_100 OPEN #3,pipe_20 CONNECT #3 TO #2 (make #2 an input pipe) EXECUTE #4 TO "win1_QWord_Music_exe" TO #3
QWord_Music would read anything printed to #4 by QWord with the command INPUT #30,command$
It could then pass back information with PRINT #31,info$. QWord would read with INPUT #2,info$
EXECUTE is ideal for this task as QWord_Music is then owned by QWord.
Simple
Now try having QWord_Music compiled with Q-Liberator.
Thanks to Per, I know to set up QWord_Music to INPUT from #0 (instead of #30) and PRINT to #1 (instead of #31)
That should be it, I hear you cry (just you wait - I'm crying already)
1) If QWord_Music uses PRINT #1;"Test" - QWord music fails with "Invalid Parameter" - no idea why - maybe Turbo sets up its channels differently. ?? Amyone ?? PRINT #1;'' does not report an error by the way
2) OK - lets try changing QWord itself..
change above to:
OPEN #4,pipe_100
OPEN #2,pipe_20
EX "win1_QWord_Music_exe",#4,#2Now I get QWord with output and input pipes in the channels menu of QPac2 - however, QWord_Music has no open channels listed and never gets the commands sent to it by QWord !! Plus QWord_music is owned by Job 0
I did try removing the OPEN #2 call and using the CONNECT command, just different errors but QWord_Music sees no open channels !!
Come on then all you job experts - how do I overcome this - am I missing something obvious??
Or maybe the easier solution is to find out George Gwilt's article on how to make the changes to Wolfgang's code so that it can work with Turbo even though it amends its own parameters.... (anyone got a copy of that article please seeing as my own is somewhere in all these boxes)....
Plus Wolfgang - I am not quite sure all your source code for sound_bin is provided on your website!!
-- Rich Mellor RWAP Services 26 Oak Road, Shelfield, Walsall, West Midlands WS4 1RQ
http://www.rwapservices.co.uk/
_______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
