Udostępnij za pomocą


Błąd kompilatora C3701

"function": event_source nie ma zdarzeń

Uwagi

Podjęto próbę użycia event_source w klasie, która nie ma metod zdarzeń. Aby naprawić ten błąd, dodaj do klasy co najmniej jedno zdarzenie.

Example

Poniższy przykład generuje C3701:

// C3701.cpp
[ event_source(native) ]
class CEventSrc {
public:
   // uncomment the following line to resolve this C3701
   // __event void fireEvent(int i);
};   // C3701

int main() {
}