用DirectX 7.0 SDK开发,编译时碰到了以下错误:
    
  
  
    
      
        syntax error : missing ';' before identifier 'lpDD'
        
error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
  error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
    
  打开工具->选项,工程已经包含SDK的Include和Lib文件夹,为什么还有错误? 
  
  
    
  原来是Windows自带的DirectX版本过低,需要提高我们安装的SDK文件夹目录的优先级。 
  
  
    
  注意图中的向上箭头按钮。调整优先级后可以通过正常编译了。 
  
  


 
     
					 
					