
26 Oct
2006
26 Oct
'06
6:44 a.m.
Hello, __FILE__ is a macro for the path to the current source file. I would like to remove the common prefix (like "c:\dev\my_program\") from it, which is in a preprocessor macro SOLUTIONDIR. Is there a metaprogramming way to do that? So the class TSuffix should be used like this: TSuffix<x, n>::value // cuts prefix of length n off char array x It would be nice if the compiler would not even store the whole path in the executable, but only the distinguishing suffix. Any ideas how to start? TIA, Arno