CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (4 messages)

Thanks for mentioning two options in handling errors in a constructor. I guess I will use the option 1 (set a Error-In_Constructor flag). This option seems to be compatible with the way my program works. Thanks for your great tips !!
Thanks for telling me the truth that I cannot use throwing an exception to handle errors in a constructor. Thanks again.
#30039- #Mighty GDI Destructor ? Message #30564
Thanks for telling me the truth (need to manually delete old bitmap handle before ending the destructor) before I make a big mess in my program.
Please show me a way to handle errors inside a constructor. A constructor does not return a value. It cannot return a NULL or FALSE to the parent program that the constructor encounters an error. Therefore, all the constructor can do is to show an error message. But it cannot…