Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!ncsuvx!news From: george@hobbes.catt.ncsu.edu (George Browning) Newsgroups: comp.windows.x Subject: A yes/no dialog (or synchronous operations) Message-ID: <1990Nov19.050221.20537@ncsuvx.ncsu.edu> Date: 19 Nov 90 05:02:21 GMT Reply-To: george@hobbes.catt.ncsu.edu (George Browning) Organization: Computer and Technologies Theme Program Lines: 27 Is the following possible? void mycode() { if (Confirm("Do you wish to exit the program?")) exit(0); } where Confirm() displays a yes/no dialog with the question and sends a Boolean back. This can be done with callbacks if I set the callback for the yes button to a certain function. However, I have a situation where several Confirm-like functions will be needed and multiple callbacks would be entirely too messy. I can run the application with -synchronous and the above will work (I think) but I really only need synchronous for one or two functions. Thanks in advance, george -- ------------------------------------------------------------------------ | o | George Browning george@hobbes.catt.ncsu.edu | o | | o | NC State University Raleigh, NC | o | ------------------------------------------------------------------------