home *** CD-ROM | disk | FTP | other *** search
- /* **************************************************************
- **** pvhctry.c - example program demonstrating how to run ***
- **** PolyVision Help System ***
- **** Link in large mode with PVHCL.LIB
- **** (C)1994 PolyVision SoftWare ***
- ************************************************************** */
-
- #include <stdio.h>
- #include <stdlib.h>
-
-
- /* include the PolyVision Help File header */
- #include "pvhc.h"
- /* if you ran PHC with the -h option, */
- /* you could place that header here also */
-
-
- char far *HelpErrors[] = {
- "Could not open help file. . .",
- "Help file not PVHC type. . .",
- "Could not allocate help buffers. . ."
- };
-
- void main(void)
- {
- int i;
-
- /* Assign color scheme to use - see header file */
- HelpWindClr = BLUECYAN; /* blue over cyan */
- HelpBoldClr = HIWHITECYAN; /* white over cyan */
- HelpBordClr = REDWHITE; /* red over light gray */
- HelpGlosClr = BLACKCYAN; /* black over cyan */
- HelpRefClr = YELLOWCYAN; /* yellow over cyan */
-
- /* Use your help file name or setup.hlp for demonstration */
- if((i = initPVHelp("setup.hlp")) < 0) /* initialize the system */
- {
- printf("%s\n", HelpErrors[~i]); /* inform user no go */
- exit(0); /* exit program */
- }
-
- getHelpPage(2); /* requests help page 2 */
-
- DestroyPVHelp(); /* close down the help system */
- showcursor(); /* show the text cursor */
- printf("That's all there is to it!\nPLEASE REGISTER!!\n");
- return;
- } /* End of program */
-