Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C3704
Collapse the table of content
Expand the table of content

Compiler Error C3704

Error Message

'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 following code sample.

The following sample generates C3704:

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

int main() {

Community Additions

© 2015 Microsoft