i have an SDI , and i was wondering WHERE i would put the function to toggle if a bool is true or false, and therefor, ask the user if they want to save before exiting the program
If it were me, don't think I'd use a BOOL variable in this situation. Would just use a MessageBox() with a YES|NO reply to it. I would put it in the exit function, in the menu. If the MessageBox() reply came back as a YES then I'd call the program to seralize there, if not, then exit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.