Possible Duplicate:
How to get the application executable name in Windows (C++ Win32 or C++/CLI)?
Extracting the current executable name
I need to get the relative path of the executable file directory using C++. I have done the same program using C# which works perfectly.
System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath)
I would like to get the similar result using C++.