How to determine in an MFC program the program's execution dir?

KevinMU1

Senior member
Sep 23, 2001
673
0
0
Is there a function that I can use to determine from within a program the directory that is is executing in? I know I can get the cwd with _getcwd but that is not necessary the directory containing the exe.

Help??