หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'constructor' : an interface cannot have a constructor
Remarks
A Visual C++ interface cannot have a constructor.
Example
The following example generates C2846:
// C2846.cpp
// compile with: /c
__interface C {
C(); // C2846 constructor not allowed in an interface
};