> Dear all, > > For a project, I have to add a JPEG image. Given the fact that each > developper has a local copy of the svn project, I would like to give a > relative path instead of a global one. From what I understand, such path > must be given relatively to the folder where GUI is executed ! > > How could I use a relative path valid at compilation time ? > > Thank you very much
I'm not sure if I have grasped your question correctly, but I would create a prefs file in the same dir as the app, then use: int Fl_Preferences::getUserdataPath(char *path, int path_size) Which, according to the documentation, creates a path relative to the prefs file, and is "usable for application data beyond what is covered by Fl_Preferences". At least, that's how I do it :) Nicholas _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

