VC2010+DirectShow编译错误: error C2059: 语法错误 : “catch”

  


|字号 订阅

1>E:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcomcli.h(954) : error C2059: 语法错误 : “catch”
1>E:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcomcli.h(954) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>E:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcomcli.h(970) : error C2059: 语法错误 : “catch”
1>E:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcomcli.h(970) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)

 

解决方法:去掉如下预处理的定义
try=__try
except=__except
leave=__leave
finally=__finally

你可能感兴趣的:(VC2010+DirectShow编译错误: error C2059: 语法错误 : “catch”)