Hi all,
I'd like to pass a MSVC++ 2008 macro into my program via a /D define like so
/D__HOME__="\"$(InputDir)\""
then in my program I could do this
cout << "__HOME__ => " << __HOME__ << endl;
which should print somethine like
__HOME__ => c:\mySource\Directory
but it doesn't like the back slashes so I actually get:
__HOME__ => c:mySourceDirectory
Any thoughts on how I could get this to work?
UPDATE: I finally got this to work with Tony's answer below but note that the $(InputDir) contains a trailing back slash so the actual macro definition has to have an extra backslash to handle it ... hackery if ever I saw it!
/D__HOME__="\"$(InputDir)\\""