home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
thrd1.zip
/
read.me
< prev
next >
Wrap
Text File
|
1994-03-07
|
865b
|
22 lines
Thread example program
======================
This example uses 2 threads.
Thread1 contains a menubar that lets you start the 2nd thread, send messages to
it so that it opens new frame windows or closes the frames, or stop the
threads.
Thread1 communicates to thread2 via an IObjectWindow.
Thread2 is passed an IStaticText* for an object in thread1. Thread2 writes to
this IStaticText.
NOTE: When running the program, you must use the first menu option (start) to
start thread2 before sending the messages that cause thread2 to display Frames
2 - 5. There are any number of ways to remove this restriction from the program.
(This is left as an exercise for the user.)
This program was built and tested using version 2.01 with CTM0004 applied. To
build the program, cd to the directory where you unzipped the sample and enter:
nmake