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 C3736

'event': must be a method or, in the case of NGWS runtime events, optionally a data member

Native and COM events must be methods. NGWS events can also be data members.

The following sample generates C3736:

struct A { 
   __event int e(); 
};

struct B {
   int f;   // C3736
   // The following line resolves the error.
   // int f();
   B(A* a) {
      __hook(&A::e, a, &B::f);
   }
};

void main() {
}