U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Linux and GetCurrentDirectory
Re: Linux and GetCurrentDirectory [message #33882 is a reply to message #33879] Wed, 21 September 2011 08:54 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1221
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?

Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: read/write to /dev/rtp is happening .. but a small problem
Next Topic: Serialize a VectorMap
Goto Forum:
  


Current Time: Sun Apr 26 15:30:43 GMT+2 2026

Total time taken to generate the page: 0.00486 seconds