Im being asked where ofMain.h is! also no path to media is being successfully found

I suspect that my applications path relative to wherever it was first created (using project generator) has changed, There was some error when I created it on the desktop as it popped in a folder I had allready given the same name to, i been trying to port it back to normal but its been playing up more and more.

Also why can’t I create a single object and initialise it in setup and then call functions on it within draw and setup? I have had to use pointers each time, but why?