TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Phil Crown
date: 1995-10-21 15:18:52
subject: _beginthread()

I posted a message about _beginthread() not working without a call to
DosSleep().  Well, I've found my problem there too, seems if I call
WinSendMsg() instead of WinPostMsg() to start the thread, it works!

Now, I have another problem, how can I tell when a program started with
DosStartSession() has ended?  I've tried calling DosStartSession from a
thread, then using DosWaitThread() within the thread itself, but that is not
working (yet), DosWaitThread() doesn't seem to want to wait on itself.

Another unrelated problem, how can I get a rexx.cmd file to display its
output to my terminal window.  For example, say 'Hello World', or when
pressing ctrl-break to abort the rexx script, I want to be able to see the
results.  Is this what a subcommand handler does?

phil.crown{at}bluecafe.com

--- Blue Wave/Max v2.21a Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.