共用方式為


編譯器錯誤 C2706

不相符__try的不合法 __except (區塊中__try遺漏 '}'?

編譯程式找不到區塊的 __try 右大括弧。

下列範例會產生 C2706:

// C2706.cpp
int main() {
   __try {
      void f();
   // C2706  } missing here
   __except(GetExceptionCode() == 0x0) {
   }
}