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

Home » U++ Library support » U++ Core » Linux and GetCurrentDirectory
Linux and GetCurrentDirectory [message #33878] Tue, 20 September 2011 23:25 Go to previous message
forlano is currently offline  forlano
Messages: 1221
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

GetCurrentDirectory() under linux is obtained via
getcwd(h, 1024)

Unfortunatly this function return a different directory depending whether the program is run typing in consolle or by a double click.
This make a BIG difference if the app run another executable that depends by the "real" current directory, i.e. where the exe file resides.
I wonder if there is a safer and better way under linux to achieve the wanted purpose.

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 04:08:54 GMT+2 2026

Total time taken to generate the page: 0.00603 seconds