CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Jul 2001
    Location
    Trutnov, Czech Republic
    Posts
    459

    Could someone help me with OnEndSession() problem?

    Hi all,

    I'm doing program for school which will serve as logger: after kid logs on, it will be asked by this program for its name and he will have to confirm, whether the PC was ok when he started the lesson. The program logs this into HTML file. The program keeps running (only the dialog disappears) and when kid logs off, it will automatically write next record into HTML file.

    The problem is, on Win2000 machines at school, when logging off, I get the message "Program is not responding", you know what I'm talking about.

    I attach the program (in ZIP there are sources) so if somebody could take a look at this, I would be very grateful.

    Just one note: to keep program running in the background I use hidden notify dialog, because if the program didn't have any main window, it would be terminated automatically after InitInstance() finishes. This notify dialog is there just to catch OnQueryEndSession() and OnEndSession() messages. The problem is, on the problematic Win2000 machines in the school, OnEndSession() gets never called.

    Thanks to anyone who will bother and take a look.
    Attached Files Attached Files
    The sun is the same in the relative way, but you're older
    Shorter of breath and one day closer to death


    - Roger Waters, 1973

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured