Compiler Error C3745
'function': only an event can be 'raised'
Only a function defined with the __event keyword can be passed to the __raise keyword.
The following sample generates C3745:
// C3745.cpp
struct E {
__event void func();
void func(int) {
}
void func2() {
}
void bar() {
__raise func();
__raise func(1); // C3745
__raise func2(); // C3745
}
};
int main() {
E e;
__raise e.func();
__raise e.func(1); // C3745
__raise e.func2(); // C3745
}
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