Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Core - App.cpp - GetDataFile
Re: Core - App.cpp - GetDataFile [message #3174 is a reply to message #3172] Tue, 09 May 2006 23:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
3togo wrote on Tue, 09 May 2006 15:48

I think that no matter exec program is running under posix or windows, GetDataFile should always get the current working directory(getcwd) and concat with *filename.



What makes you think so? Wink

GetDataFile is intended for files that are shipped with application. The most logical place in Win32 is therefore the same dir as where .exe resides (in Linux this is still to be decided, however I am starting to think that GetExeDirFile would be a good idea even in linux, despite being against current linux conventions).

For development purposes, there is a hack that allows you to place those app specific files in package folder (for easier maintainance) and U++ takes them from there when started from TheIDE (that is what that environment variable is for).

Mirek
 
Read Message icon13.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: TrayIcon for linux
Next Topic: how to listnen to File System Events?
Goto Forum:
  


Current Time: Fri Mar 29 14:20:51 CET 2024

Total time taken to generate the page: 0.01031 seconds