3,245
社区成员
发帖
与我相关
我的任务
分享
try{
if(nothandled(hr)){
}else{
}
}catch(_com_error &e){
}
//sometime
try{
if(succeeded(hr)){
dosth...
}
}catch(_com_error &e){
}
//sometime
try{
if(nothandled(hr)){
dosth...
}
}catch(_com_error &e){
}
#define nothandled(status) ((hresult)(status) == s_false)
try{
if (succeeded(hr)) // 组件进行了处理
if (nothandled(hr)) // 组件没有进行处理
}catch(_com_error &e){
...
}