Category : Miscellaneous Language Source Code
Archive   : PVHC.ZIP
Filename : PVHCTRY.C

 
Output of file : PVHCTRY.C contained in archive : PVHC.ZIP
/* **************************************************************
**** pvhctry.c - example program demonstrating how to run ***
**** PolyVision Help System ***
**** Link in large mode with PVHCL.LIB
**** (C)1994 PolyVision SoftWare ***
************************************************************** */

#include
#include


/* 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 */


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : PVHC.ZIP
Filename : PVHCTRY.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/