I have a managed C++ project starting with:
int main(array<System::String ^> ^args)
args is not the program name, but the first argument.
How do I get the program name, with its full path, i.e. something like "c:\App\foo.exe"?
GetCommandLine() and GetModuleFileName() don't seem to work with managed code, what can I use?