How can I get the .hex and .cpp files of my project?

Interesting, thanks

I found the .cpp file in \Local Settings\Temp\ folder, but in it there was no main().