Udostępnij przez


Błąd kompilatora C2846

"konstruktor" : interfejs nie może mieć konstruktora

Uwagi

Interfejs Visual C++ nie może mieć konstruktora.

Example

Poniższy przykład generuje kod C2846:

// C2846.cpp
// compile with: /c
__interface C {
   C();   // C2846 constructor not allowed in an interface
};