编译器错误 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() {
}