หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'function1': overriding virtual function differs from 'function2' only by calling convention
Remarks
The signature of a function in a derived class cannot override a function in a base class and change the calling convention.
Example
The following example generates C2695:
// C2695.cpp
class C {
virtual void __fastcall func();
};
class D : public C {
virtual void __clrcall func(); // C2695
};