Sdílet prostřednictvím


Chyba kompilátoru C3115

'attribute': tento atribut není u konstruktoru povolený.

Poznámky

Atribut byl použit na konstruktor, pro který nebyl zamýšlen. Další informace najdete v tématu Atributy podle využití .

Příklad

Následující příklad vygeneruje C3115.

// C3115.cpp
// compile with: /c
#include <unknwn.h>
[module(name="xx")];

[object, helpstringdll(xx.dll), uuid("00000000-0000-0000-0000-000000000001")]   // C3115
// try the following line instead
// [object, uuid("00000000-0000-0000-0000-000000000001")]
__interface IMyI {
   HRESULT xx();
};