home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / CONSOLIO / README < prev    next >
Text File  |  1995-06-08  |  2KB  |  78 lines

  1.  
  2.  
  3. CONSOLIO - Console I/O
  4.  
  5.  
  6. DESCRIPTION:
  7.  
  8. This sample program displays earth worms aimlessly moving about the
  9. screen. Each worm is a separate thread with a unique color combination
  10. and movement pattern. When one worm encounters another worm, the
  11. color attribute of the worm is set to red.
  12. The user can add or delete worms using the keyboard or mouse.
  13.  
  14. TASK:
  15. Draw "Worms" on screen using OS/2 screen I/O routines.
  16.  
  17. CONCEPT/FEATURE:
  18. Demonstrates how to call video (Vio), keyboard (Kbd), and mouse (Mou)
  19. 16-bit functions from a 32-bit code segment.
  20. Several mouse selectable options are shown to illustrate mouse input.
  21. The code also illustrates the use of threads.
  22.  
  23. SAMPLE LOCATION:
  24. Inside the OS/2 Sample Programs (which is inside the VisualAge C++ 
  25. Samples folder).
  26.  
  27. Note:This sample is not provided in project form.
  28.  
  29. SOURCE FILE LOCATION:
  30.  
  31. X:\ibmcpp\samples\toolkit\os2\consolio
  32. where X: is the drive you installed the samples and document component
  33. of VisualAge C++ for OS/2.
  34.  
  35.  
  36. HOW TO RUN THE SAMPLE
  37.  
  38. -From your OS/2 desktop:
  39.  Double-click on the sample's icon.
  40.  
  41. -From an OS/2 command prompt:
  42.  To start a non-WorkPlace Shell sample program from an OS/2 command
  43.  prompt, type the name of the executable file and press Enter.  If you
  44.  have edited source code of a sample program and want to recompile,link,
  45.  and run the files, use the NMAKE tool. Your output is the executable
  46.  file.  For information about the NMAKE utility, see the
  47.  OS/2 Tools Reference.
  48.  
  49.  
  50. SOFTWARE/HARDWARE PREREQUISITES:
  51.  
  52. - IBM VisualAge C++
  53. - OS/2 Warp
  54. - IBM or compatible 386 and up.
  55.  
  56. REQUIRED FILES      DESCRIPTION    
  57.  
  58.   disp.c            Screen display sample code
  59.   disp.h            
  60.   init.c            Initialization code
  61.   init.h
  62.   readme            This file
  63.   wmouse.c          Mouse support code
  64.   wmouse.h
  65.   worms.c           Main driver file
  66.   worms.def         link definition file
  67.   worms.exe         The executable
  68.   worms.h
  69.   worms.ico
  70.   worms.mak         MakeMake generated makefile
  71.   wrmhelp.c         Help routines display
  72.   wrmhelp.h
  73.   wrmthrd.c         Routines to support threads. 
  74.   wrmthrd.h
  75.  
  76.  
  77.  
  78.