I have the Arduino's compiler 0018 and 0021. I want to use the .hex file for Proteus, but the problem is I can't find the .hex file ( I compiled and Uploaded my project; Arduino is not connected ) . I'm using Windows XP service Pack2 and I'm using the windows's Search to find any .hex file in my computer; but it don't find my .hex project.
Hold down the shift key, then click the upload button. This will trigger the verbose output option. The temporary directory where the hex file is created will be revealed. The hex files are deleted when you close the sketch.