home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7476 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
  2. From: johannes.beekhuizen@contrast.wlink.nl (Johannes Beekhuizen)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Stopping Control-C...  I though I was...
  5. Message-ID: <724379469.AA00753@contrast.wlink.nl>
  6. Date: Mon, 14 Dec 1992 16:27:28
  7. Sender: postmaster@contrast.wlink.nl
  8. Lines: 31
  9.  
  10. Hello Don,
  11.  
  12. On Sunday December 13 1992, Don Bontemps wrote to All:
  13.  
  14.  DB> I wrote an application program that I did not want the user to be able
  15.  DB> to exit via pressing <control-C>.  I included the "setcbreak := true"
  16.  DB> line to my source code.  This stops <control-C> but does not stop
  17.  DB> <control-break> (ie: the break on the pause key).  Can someone tell me
  18.  DB> how to prevent <control-break> from doing this?   Thanks.....!
  19.  
  20. In my manual (Library Reference) it says:
  21.         SetCBreak sets the state of Ctrl-Break checking in Dos. When off
  22. (false), Dos only checks for Ctrl-Break during I/O to console, printer or
  23. communications devices. When on (true), checks are made at every system call.
  24.  
  25. Now, if you look in the Programmer's Guide, it says for CheckBreak:
  26.         var CheckBreak : Boolean;
  27.         When CheckBreak is True, pressing Ctrl-Break aborts the program when
  28. it next writes to the display. When CheckBreak is False, pressing Ctrl-Break
  29. has no effect.
  30.  
  31. It's also clearly explained in the online help.
  32.  
  33. Regards,
  34.  
  35.            Hans.
  36.  
  37. fidonet  2:281/527.5
  38. yan-net  123:3183/0
  39. e-mail   johannes.beekhuizen@contrast.wlink.nl
  40.  
  41.