Question:
Was this application compiling and running successfully on this same computer before moving from Oracle 10 to Oracle 11 or are you also changing to a new OS, etc.?
I ask because you really should not have to change anything else other than the version of the Oracle library that you link to or the version of the Oracle .dll that you load
If this was working before with Oracle 10 then you should not have to add any new compiler directives at all but you should just need to modify the current settings to point to the new library names.
GetProcessImageFileNameA is a Windows API function that is located in either kernel32.lib or PSAPI.lib depending on the OS that you are using.
Please see the following from Microsoft: