开发者

Catching the exit event of a simple console application

I hav开发者_JS百科e this simple console application in Delphi 2010 and I would like it to do something (run a piece of code) when I press the "X" button (when I close it), however I can't seem to find how to assign a close event to it. Neep help, thanks.


You need to use SetConsoleCtrlHandler Windows API function to set your handler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜