I had the class wizard of MSVC++6 create an MFC application based on a dialog. I then removed the dialog because I didnt want it and i only wanted to run a simple painting process on a loop InitInstance. This worked fine.
When i end my application (using the CTRL+ALT+DEL box) I says my application is not responding - which is what i expected because it's in an endless loop. I wanted to have a message when you end the application, so i created a thread for the painting. This worked fine too.
The problem i have is the program exits if i let it finish the InitInstance function. How do i stop it from quitting? Do i have to have a window associated with the application for this to work?
Any help or design sugestions would be great.
And why wouldn't you want it to finish?
Because i want the other thread to keep going.