Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Error C3701

'function' : event_source has no events

You attempted to use event_source on a class that has no event methods. To fix this error, add one or more events to the class.

The following sample generates 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() {
}

Community Additions

ADD
Show:
© 2015 Microsoft