Please verify settings of Visual studio specifically SDK library Include files. Sometimes visual studio property settings are pointing to wrong directories.
Also make sure that required components are installed to run this sample code as mentioned in the Releasenotes.htm in the sample code folder.
If you don't specify the compiler, just issue "buildall.bat" from the command line, doeseverything build successfully? The sample build files will attempt to locate the most recent compilers on your system, Intel compilers first, Microsoft compilers second.
Do the individual build scripts work, if you simply attempt to build one of the samples and not the entire batch? Some of them require additional non-Intel components be present on your system, so not every sample will build properly from the buildall script. It's usually easier to work with one sample than to try and build everything. If you narrow down the problem to the specific sample that is failing, it will be easier to help you solve the problem.
Also, there are a few samples that require some Microsoft SDK components but the build scripts do not accomodate all SDK distributions. So you may have to either modify the respective build batch scripts to work with the SDK you've got installed on your system or install one of the SDKs that is supported in the script to make the build work. I don't recall the specific sample(s), but recall encountering this some time ago. Unfortunately, there are a very large number of SDK distributions and they all seem to have different installation configurations -- the build scripts are not guaranteed to work with every SDK installation.