Original Post
I wanna write a program that would run forever (in practice for some days) while optimizing some data. It has to be a w32 console application (VC6.0).
The program have to be able to exit and save it''s all current data and then later read it back and continue computing when it runs again.
My problem is that how can I interact with the program at runtime? I mean the following would be a good solution for me:
when I push a key down, the program stop working and saves it''s data to disk and then exits.
Question: how can I check whether has a key been pressed since my last check?
Ropi