home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / DSIIC2.ZIP / HELPDEMO.C < prev    next >
C/C++ Source or Header  |  1991-07-15  |  727b  |  35 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. #include <string.h>
  10.  
  11. start(int argc, char *argv[]){
  12. extern struct screen_structure scr;
  13. extern struct window_structure w[];
  14. extern struct help_structure hlp;
  15.  
  16. char ch;
  17. char ext;
  18. char *ptr;
  19.  
  20. strcpy(hlp.filename,"helpdemo.hlp");
  21. hlp.page=1;
  22. hlp.interior_attr=scr.inverse;
  23. hlp.frame_attr=scr.inverse;
  24. cls();
  25. print(1,1,"Press F1 to see help page 1, any other key to continue.");
  26. get_key(&ch,&ch);
  27.  
  28. hlp.page=2;
  29. print(1,4,"Press F1 to see help page 2, any other key to continue.");
  30. get_key(&ch,&ch);
  31.  
  32. print (1,6,"bye");
  33. return (0);
  34. }
  35.