Category : Files from Magazines
Archive   : CUJ9205.ZIP
Filename : 1005113A

 
Output of file : 1005113A contained in archive : CUJ9205.ZIP

Listing 3
***************

void _far your_error_handler(
unsigned device_error,
unsigned dos_error,
unsigned _far *header
);

main()
{
/* Set up your handler as the handler */
_harderr( your_error_handler);

/* Remainder of your code */
}

void _far your_error_handler(
unsigned device_error, /* Device error code */
unsigned dos_error, /* Dos error code */
unsigned _far *header /* This is the device header */
)
{
/* Test the device error and the dos error, as appropriate */

/* Inside of your routine, you need to call one or more
of the following */
/* To retry */
_hardresume( _HARDERR_RETRY );
/* To abort */
_hardresume( _HARDERR_ABORT );
/* To ignore */
_hardresume(_HARDERR_IGNORE);
/* To return to DOS (continue with program) */
_hardretn( doserr );

}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9205.ZIP
Filename : 1005113A

  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/