I'm just starting to play with the REXX API.
I created a small REX file that simply does a SAY "Hello world". I then coded the appropriate REXXSTART stuff to invoke it. I get RC=0 properly, but absolutely no sign that the HelloWorld REX file was invoked.
After playing for a LONG time, I created a 2nd REX file and changed the 1st REX file to do an ADDRESS CMD "HelloWorldTwo.REX. Lo and behold, the window appears with the output from the SECOND HelloWorldTwo REX file, so the FIRST REX file is obviously being started properly.
But where does the SAY output from the first one go?
I'm using PowerBasic.
If I compile the trial program as a Console App, everything works fine, I get a single CMD window with the output from BOTH the REX files.
If I compile the trial program as a Windows App, I get only the window from the 2nd inner REX file.
Is there a way to invoke a REX file, via REXXSTART, from a Windows App,, and somehow get simple output via SAY commands? Do I have to create a CMD window 1st?
Windows 7 (32 bit)