home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / ibm / pc / misc / 10817 < prev    next >
Encoding:
Text File  |  1992-07-24  |  1.4 KB  |  60 lines

  1. Path: sparky!uunet!mcsun!uknet!warwick!esudh
  2. From: esudh@warwick.ac.uk (Flint)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Re: URGENT!!! HELP NEEDED WITH INT 24 FAILURE OVERRIDE !!!!
  5. Message-ID: <jt7mb237@csv.warwick.ac.uk>
  6. Date: 24 Jul 92 17:40:30 GMT
  7. References: <9j6mbf7x@csv.warwick.ac.uk>
  8. Sender: news@csv.warwick.ac.uk (Network news)
  9. Organization: Computing Services, Warwick University, UK
  10. Lines: 47
  11. Nntp-Posting-Host: lily
  12.  
  13.  
  14.  
  15. Hi again, further to my plea for help...
  16.  
  17. Let me thank all those who replied with solutions. 'tis much appreciated.
  18. (Un)fortunately I stumbled across the solution shortly after the posting.
  19.  
  20. For those who are interrested.. the solution in quick C is..
  21.  
  22. #include <dos.h>
  23.  
  24. void far myroutine(void);
  25.  
  26. main()
  27. {
  28.  
  29.     _harderr(myroutine);  /* this bit redirects the vector */
  30.  
  31.     /* rest of stuff */
  32.  
  33. }
  34.  
  35. void far myroutine(){
  36.  
  37.     printf("This is my error routine..\n");
  38.     /* then to return from this fuction.. use */
  39.  
  40.     _harderr(0);        /* the 0 is the error return value */
  41.     
  42.     /* Or to go on to use the built in interrupt routine */
  43.  
  44.     _hardresume(num);    /* num specifies what sort of critical error
  45.                   response to give/prompt for     */
  46.  
  47. }
  48.  
  49. I hope this helps those who have similar problems....
  50.  
  51. (Note the inclusion of the number in returning from harderr.. I omitted that
  52. what I replied to those who emailed me personally.)
  53.  
  54. Cheers,
  55.  
  56. Ian Coggins
  57.  
  58. PS.. Thanks to adam, who mailed me, but I couldn't reply to as the mailer
  59. retunred it as unknown... *sigh*
  60.