c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory
This error was caused by an empty path variable  $(OPEN_NI_INCLUDE) which (I guess) indicates the directory containing the installed OpenNI SDK. It was empty because I forgot to restart Visual Studio after install the SDK... :-p
So the solution is simple: restart Visual Studio and the path variable will be set.
After solving the previous problem, I got another similar problem which related to the Linker path.
I used the set command  in cmd of Windows to the list environment variables about OpenNI:
OPEN_NI_BIN64=C:\Program Files\OpenNI\Bin64Then I changed $(OPEN_NI_LIB) to $(OPEN_NI_LIB64) and the new error message said the file OpenNI.lib cannot be found, and the reason was it should be OpenNI64.lib in my system. The right place to change the library file name is in the following path:
Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies
 Cannot open source file: 'WIN32': No such file or directory
 How can I display the contents of an environment variable from the command prompt in Windows 7?