Teilen über


Compilerfehler C3115

„attribut“: Dieses Attribut ist in „construct“ nicht zulässig.

Bemerkungen

Ein Attribut wurde auf ein Konstrukt angewendet, für das es nicht vorgesehen war. Weitere Informationen finden Sie unter "Attribute by Usage ".

Beispiel

Im folgenden Beispiel wird C3115 generiert.

// 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();
};