🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.borland-delphi
2 messages
2 total messages Started by 0BIT Mon, 21 Jul 2003 19:14
Control Break
#1458
Author: 0BIT
Date: Mon, 21 Jul 2003 19:14
11 lines
1780 bytes
Hello,

I've written a console application (Delphi 6), and I want to detect if
Control-Break or Control-C is pressed then go to a procedure where I can put
my break code.

How can this be done?


Greetings,
0BIT
Re: Control Break
#1457
Author: KLinZ
Date: Mon, 21 Jul 2003 19:26
15 lines
2113 bytes
0BIT wrote:

> I've written a console application (Delphi 6), and I want to detect if
> Control-Break or Control-C is pressed then go to a procedure where I
> can put my break code.
>
> How can this be done?

Use SetConsoleCtrlHandler()

http://msdn.microsoft.com/library/en-us/dllproc/base/setconsolectrlhandler.asp


-- 
www.zenobits.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads