home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 2.ddi / CEXAM.ZIP / HARDERR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-11  |  604 b   |  24 lines

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. int main(void)
  5. {
  6.     TABLEHANDLE tblHandle;
  7.     int pxErr;
  8.  
  9.     /* Enable hardware handler so functions, rather than DOS, return errors */
  10.     if ((pxErr = PXSetHWHandler(TRUE)) != PXSUCCESS)
  11.         printf("%s\n",PXErrMsg(pxErr));
  12.  
  13.     PXInit();
  14.     printf("Open drive A: and press any key to continue\n");
  15.     getchar();
  16.     while (PXTblOpen("A:TABLE",&tblHandle,0,0) == PXERR_DRIVENOTREADY)
  17.     {
  18.         printf("Please place disk in drive A:.  Press return when ready\n");
  19.         getchar();
  20.     }
  21.     PXExit();
  22.     return (pxErr);
  23. }
  24.