Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Windows shutdown

mossmoss Member Posts: 58
I want my application to save some stuff to file and close when the user shuts down windows. How can I do this?
thanks

Comments

  • ManningManning Member Posts: 1,621
    : I want my application to save some stuff to file and close when the user shuts down windows. How can I do this?
    : thanks
    :
    I wrote a very small component for this. You can download the source for it from http://www.mannsoft.ca/source.php if you want (TQueryEndSession is the component)
  • slicer69slicer69 Member Posts: 272
    Catch the WM_DESTROY message that Windows sends an application to close it.

  • Chris BrownChris Brown USAMember Posts: 4,496 ✭✭

    __ < http://forcoder.org /> free ebooks and video tutorials about // C#, Ruby, Java, Python, Go, Visual Basic, Assembly, Swift, Delphi, R, Scratch, PHP, Perl, C++, JavaScript, PL/SQL, C, Objective-C, MATLAB, Visual Basic .NET Kotlin, VBScript, Logo, SAS, ML, COBOL, Prolog, Fortran, Scheme, Dart, FoxPro, F#, Scala, Alice, Julia, D, Erlang, Clojure, Lisp, Bash, LabVIEW, Hack, Transact-SQL, Ada, Lua, Crystal, ABAP, Awk, Apex, Rust // _______

Sign In or Register to comment.