home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- int main(void)
- {
- TABLEHANDLE tblHandle;
- int pxErr;
-
- /* Enable hardware handler so functions, rather than DOS, return errors */
- if ((pxErr = PXSetHWHandler(TRUE)) != PXSUCCESS)
- printf("%s\n",PXErrMsg(pxErr));
-
- PXInit();
- printf("Open drive A: and press any key to continue\n");
- getchar();
- while (PXTblOpen("A:TABLE",&tblHandle,0,0) == PXERR_DRIVENOTREADY)
- {
- printf("Please place disk in drive A:. Press return when ready\n");
- getchar();
- }
- PXExit();
- return (pxErr);
- }