Export (0) Print
Expand All
Expand Minimize

Compiler Error C3115

'attribute': this attribute is not allowed on 'construct'

An attribute was applied to a construct for which it was not intended. See Attributes by Usage for more information.

The following sample generates 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();
};
Show:
© 2014 Microsoft