It was because of "dwmapi.lib" that I put in Additional Dependencies. When I run the application in Win XP, it wants to find "dwmapi.lib" as the first step, so it breaks.
Now I used another way:
if ( ... )
hLib = LoadLibrary( L"dwmapi.dll" );
GetProcAddress( hLib, "DwmIsCompositionEnabled" );
.
.
.