I have a C++ solution in VS2008 with multiple projects. This solution contains files that are needed at runtime, which are loaded according to a path relative to the solution directory (e.g. "Testing/data/" + "dataN.bin"
).
In order for this solution to work, I must set the working directory setting in the project(s) so that it will point to the solution directory (e.g. Configuration Properties >> Debugging >> Working Directory = $(SolutionDir)
). This works fine when i'm debugging on my own PC. However, when a different user loads my solution, his projects does not have this property set properly.
I have traced this setting to be stored not in the project file (PROJECT.vcproj
), but in the user-specific file created for it (PROJECT.vcproj.DOMAIN.USER.user
).
I would like a way for this setting to be stored for ALL users, without having to set it manually again and again.
My thoughts were:
- Find a way to store this in the .vcproj file (not the user-specific one) or the solution file.
- Find a way to create a "default-user-specific file", from which all user-specific settings will start out (and can modify at will later).
However, I did not find a way to do either of these.
A few more notes / constraints:
- I need to work with many big files as these resources, therefore I would like to avoid performing copies to different directories.
- The solutions needs to support multiple build configurations (debug, release, etc.).
- I would like to avoid pre/post build scripts if possible, to keep things straightforward (low priority).
Any help will be appreciated... thanks in advance.