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 C3704

'function' : a vararg method cannot fire events

You attempted to use __event on a vararg method. To fix this error, replace the fireEvent(int i, ...) call with the fireEvent(int i) call as shown in the code sample below.

The following sample generates C3704:

[ event_source(native) ]
class CEventSrc {
public:
   __event void fireEvent(int i, ...);   // C3704
// try the following line instead:
//   __event void fireEvent(int i);
};

void main() {
}