When i start my program i want to know the complete path to were the
application began. Is there an easy way to find this?
Thanks.
Printable View
When i start my program i want to know the complete path to were the
application began. Is there an easy way to find this?
Thanks.
GetCurrentDirectory() will tell you where the application's working directory is.
GetModuleFileName() will give the path to the executable you are running, from which you can deduce its directory.
Wasn't sure from your question which of the two
you can also use __argv[0]