共用方式為


編譯器錯誤 C2849

'destructor' : 介面不能有解構函式

Visual C++ 介面 不能有解構函式。

下列範例會產生 C2849:

// C2849.cpp
// compile with: /c
__interface C {
   ~C();   // C2849 destructor not allowed in an interface
};