直接Visual Studio 2005/2008中进行如下设置:
tools= > Options = > Projects and Solutions - > VC++ Directories page
把$(PATH)改成:$(SystemRoot)\System32;$(SystemRoot) ;$(SystemRoot)\System32\wbem
转载于:https://www.cnblogs.com/cuishao1985/archive/2010/04/17/1714364.html