I have a Nikon Coolpix 5700 and formatted the CF card before pulling off all the files. Ones that Carla wanted too! PhotoRec got them all back and more. You can find PhotoRec here: http://www.cgsecurity.org/index.html?photorec.html
This program works in windows or in linux!
Here are the steps I used to recover them: (click on Read More to see steps)