編譯器錯誤 C3701
'function' : event_source沒有事件
您嘗試在沒有事件方法的類別上使用 event_source 。 若要修正此錯誤,請將一或多個事件新增至 類別。
下列範例會產生 C3701:
// C3701.cpp
[ event_source(native) ]
class CEventSrc {
public:
// uncomment the following line to resolve this C3701
// __event void fireEvent(int i);
}; // C3701
int main() {
}