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 following code sample.
The following sample generates C3704:
// C3704.cpp
[ event_source(native) ]
class CEventSrc {
public:
__event void fireEvent(int i, ...); // C3704
// try the following line instead:
// __event void fireEvent(int i);
};
int main() {
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for