home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 337_01 / helpdemo.c < prev    next >
C/C++ Source or Header  |  1991-01-14  |  682b  |  33 lines

  1. /* Copyright (c) James L. Pinson 1990,1991  */
  2.  
  3. /**********************   HELPDEMO.C   ***************************/
  4.  
  5. #include "mydef.h"
  6.  
  7. /* link with readhelp.c */
  8.  
  9. start(){
  10. extern struct screen_structure scr;
  11. extern struct window_structure w[];
  12. extern struct help_structure hlp;
  13.  
  14. char ch;
  15. char ext;
  16. char *ptr;
  17.  
  18. strcpy(hlp.filename,"helpdemo.hlp");
  19. hlp.page=1;
  20. hlp.interior_attr=scr.inverse;
  21. hlp.frame_attr=scr.inverse;
  22. cls();
  23. print(1,1,"Press F1 to see help page 1, any other key to continue.");
  24. get_key(&ch,&ch);
  25.  
  26. hlp.page=2;
  27. print(1,4,"Press F1 to see help page 2, any other key to continue.");
  28. get_key(&ch,&ch);
  29.  
  30. print (1,6,"bye");
  31. return (0);
  32. }
  33.