Original Post
Hi there, I''ve been working on an autorun program (You know when you stick in a CD and it pops up a neat little program that introduces you to the CD and let''s you click buttons to do things instead of browse the CD). Anyhow, it''s all going great except when it quits it *closes* the program and it disappears from the task list, but when I run the process viewer (From the C++ dev kit) It''s still in the process list! (This also leaves the EXE locked so I can''t recompile until I restart)
Any ideas? Is this a common problem of just not unloading something? The code is way to long to post it all but here''s the run down on what I''m doing:
-InitCommonControls
-Set up window, etc.. enter message loop
-Under WM_CREATE I create the buttons, the fonts used on the button (The buttons are subclassed) and the tooltips.
-Under WM_DESTROY I post the quite message
-Under WM_COMMAND I check which button was pressed and take the appropriate action.
When you click a button it does something (Using ShellExecute) and send a windows message (SC_CLOSE) to myself, to close the program.
Any body got any ideas? This is a sort of new problem when I added the tooltips (CommonControls).
Thanks,
Ben