This is a bit tricky within the same project, but should be doable using two projects - one for 'Win32' and one for 'WinCE', referencing the same source file(s)... (compiler settings, linker settings, and especially folder settings will be different, so changing them back and forth within the same project will be tedious - better to have two projects going...).