/LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\lib\"
Likely wrong above; try removing the final "\".
/LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\lib"
Also, rename your targets to not have a space in them if they did have one.
Tim S.
If I understand you correctly, you are asking how to have Code::Blocks send a define (-DMyPlatform) for your code to pick up and (de)activate the correct sections.
I think you will find variable expansion (http://wiki.codeblocks.org/index.php?title=Variable_expansion#Script_expansion) and scripting commands (http://wiki.codeblocks.org/index.php?title=Scripting_commands#Constants) useful.
What I would do is place the following line in the project build options #defines tab.
[[if(PLATFORM == PLATFORM_MSW){print("Windows");}else if(PLATFORM == PLATFORM_GTK){print("GTK");}else if(PLATFORM == PLATFORM_MAC){print("Mac");}else if(PLATFORM == PLATFORM_OS2){print("OS2");}else if(PLATFORM == PLATFORM_X11){print("X11");}]]
It will evaluate to one of the strings in the print functions, which will be what is defined upon compilation.
Or the simpler method of using
Platform[[print(PLATFORM);]]
in the #defines tab; picking up the resulting define possibilities of Platform0, Platform1, Platform2, ...