Kompilatorfel C3115

"attribut": det här attributet tillåts inte för "konstruktion"

Anmärkningar

Ett attribut tillämpades på en konstruktion som den inte var avsedd för. Mer information finns i Attribut efter användning .

Example

I följande exempel genereras 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();
};