1.) I have a dialog based application that opens a file with creatfile. The file is then wrote to when the user hits the patch button and the application exits. Now if the user hits the cancel button the program exits and does not write to the file. Now my question is where should I close the file handle with CloseHandle();. Right now I am closing the handle in the Patch function, but to me it seems as if the user clicks the cancel button the handle will not be closed. I am thinking I should put The closehandle in the destructor of the class (of course checking to see if the handle exists before closing it)?
2.) I have Edit boxes that are integer values. When the program starts these edit boxes are initalized to 0. I do not want them to be initalized to anything. I just want them to be blank upon the programing running. How can I do this..