M
mathieu
Hi,
This is slightly off-topic (not purely C++). But I was wondering how
do people handle ressources (input file) in their C++ applications in
a cross platform way ?
I tought first of using relative path from the current running
executable, but I could not find a portable way of doing other than
getcwd/_getcwd + argv[0] which may or may not always work.
My current implementation is to produce a C++ file that gets
compiled during the build:
http://gdcm.svn.sourceforge.net/vie...taDictionary/gdcmDefaultDicts.cxx?view=markup
Thanks for suggestions !
-Mathieu
This is slightly off-topic (not purely C++). But I was wondering how
do people handle ressources (input file) in their C++ applications in
a cross platform way ?
I tought first of using relative path from the current running
executable, but I could not find a portable way of doing other than
getcwd/_getcwd + argv[0] which may or may not always work.
My current implementation is to produce a C++ file that gets
compiled during the build:
http://gdcm.svn.sourceforge.net/vie...taDictionary/gdcmDefaultDicts.cxx?view=markup
Thanks for suggestions !
-Mathieu