หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function': only an event can be 'raised'
Remarks
Only a function defined with the __event keyword can be passed to the __raise keyword.
Example
The following example 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
}