home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / CPICTE.ZIP / POPUP.C < prev    next >
Text File  |  1992-05-14  |  2KB  |  71 lines

  1. /*****************************************************************************
  2.  *
  3.  *  MODULE NAME : POPUP.C
  4.  *
  5.  *  COPYRIGHTS:
  6.  *             This module contains code made available by IBM
  7.  *             Corporation on an AS IS basis.  Any one receiving the
  8.  *             module is considered to be licensed under IBM copyrights
  9.  *             to use the IBM-provided source code in any way he or she
  10.  *             deems fit, including copying it, compiling it, modifying
  11.  *             it, and redistributing it, with or without
  12.  *             modifications.  No license under any IBM patents or
  13.  *             patent applications is to be implied from this copyright
  14.  *             license.
  15.  *
  16.  *             A user of the module should understand that IBM cannot
  17.  *             provide technical support for the module and will not be
  18.  *             responsible for any consequences of use of the program.
  19.  *
  20.  *             Any notices, including this one, are not to be removed
  21.  *             from the module without the prior written consent of
  22.  *             IBM.
  23.  *
  24.  *  AUTHOR:    John E. Diller
  25.  *             VNET:     JEDILLER at RALVM6           Tie Line: 444-5496
  26.  *             Internet: jediller@ralvm6.vnet.ibm.com     (919) 254-5496
  27.  *
  28.  *  FUNCTION:  Displays the text of any arguments on an OS/2 full screen.
  29.  *             Until the ENTER key at the workstation is hit. Written to be
  30.  *             part of the CPICTELL package. The CPICHEAR.CMD calls this
  31.  *             routine.
  32.  *
  33.  *  RELATED FILES:
  34.  *             See CPICTELL.DOC for detailed information.
  35.  *
  36.  *  PORTABILITY NOTES:
  37.  *             None known.
  38.  *
  39.  *  REVISION LEVEL: 1.0
  40.  *
  41.  *  CHANGE HISTORY:
  42.  *  Date       Description
  43.  *****************************************************************************/
  44.  
  45. #define INCL_BASE
  46. #include <os2.h>
  47. #include <stdio.h>
  48. #include <stdlib.h>
  49. #include <string.h>
  50. #define VIO_HANDLE 0
  51.  
  52. void main(int argc, char * argv[])
  53. {
  54.     USHORT wait = 1;
  55.     int i, dos_rc;
  56.     UCHAR buffer[512];
  57.  
  58.     strcpy(buffer, "");
  59.     for (i = 1; i < argc; i++) {
  60.         strcat(buffer, argv[i]);
  61.         strcat(buffer, " ");
  62.     }
  63.  
  64.     dos_rc = VioPopUp((PUSHORT)&wait,VIO_HANDLE);
  65.     if (dos_rc == 0) {
  66.         printf("%s\n\n Press enter to end\n", buffer);
  67.         gets(buffer);
  68.         VioEndPopUp(VIO_HANDLE);
  69.     }
  70. }
  71.