NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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:

[ event_source(native) ]
class CEventSrc {
public:
   // uncomment the following line to resolve this C3701
   // __event void fireEvent(int i);
};   // C3701

void main() {
}