I'm having trouble too. First of all, in order to make the sample code work I had to set "Enable Incremental Linking" to "No". Otherwise I got this error while linking:

1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Doing the same to my project didn't help though, it linked successfully but my application now exits right away. Does anyone have any ideas what might be wrong?