Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'function' : a vararg method cannot fire events
Remarks
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 example.
Example
The following example 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() {
}