Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I'm writing a small programme for Win 98 using VC++ 6, all it is meant to do is start when Windows starts, logging the time & date, then wait until shutdown to log the time & date again. I've got it to do the first bit easily enough, but I'm not sure how to get it to wait for shutdown. Presumably I must put it into a loop waiting to receive WM_ENDSESSION or something, so I need to know it if I can receive / handle messsages if my programme doesn't have a window. Will I need to create an invisible window just so I can get messages?
0 · ·