Solution:
- Go to Tools menu, click on Options
- Go to Projects and Solutions
- Click on VC++ Directories page
- Add the followings
- $(SystemRoot)\System32
- if the problem is not solved then add the the followings too
- $(SystemRoot)
- $(SystemRoot)\System32\wbem
Enjoy coding !