forlano Messages: 1213 Registered: March 2006 Location: Italy
Senior Contributor
dolik.rce wrote on Tue, 20 September 2011 23:54
GetCurrentDirectory() returns, as the name says, the current directory, which on most non-windows systems is the directory from where the binary was executed, non where it resides. To obtain the position of the binary, there is GetExeFilePath().
Best regards,
Honza
PS: Also, the current directory can change while the program is running.
Ops... Thank you for this precious info!
It means GetExeFilePath() is what I need for both OS when the position of the executable is important to reach other files.
The change of current directory may happen even under windows?