reference execuatable's full path
Posted on 1998-01-07
This is an extension to the questions I asked previously.
I need to find out the full path of my executable written in VC. argv only shows what's typed at the command line, but not including the FULL path.
I tried to use FindExecutable function. Once I included 'shellapi.h". compile errors are all refering to the shellapi.h. But I didn't change anything to it. Any other files I need to include before shellapi.h?
what's the best way to find out the full path of a excutable? or if you can reference it like you do to the working directory, that'll be good.