可以。在VS 2005的專案中,從[Project] – [Property],在Build的頁面中,有conditional compilation symbol,可以輸入您要定義的AA,就可以做到您要的功能。