I would like to use freeglut in a window created using MFC. It works fine, but if I close the window the programs ends, and never reach the instructions after the glutMainLoop();
How can avoid that?

William Gibson


IMPORTANT DISCLAIMER AND WARNING - This e-mail and any files transmitted with it are confidential and are only for the use of the person to whom they are addressed. If you are not the intended recipient you have received this e-mail in error. Any use, dissemination, forwarding, printing, copying or dealing in any way whatsoever with this e-mail is strictly prohibited. If you have received this e-mail in error, please reply immediately by way of advice to us, and delete the e-mail. It is the addressee/recipient duty to virus scan and otherwise test the information provided before loading onto any computer system. SRK Consulting does not warrant that the information is free of a virus or any other defect or error, and accepts no liability for any materials transmitted. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of SRK Consulting.

SRK Consulting http://www.srk.com.au