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.
Example
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();
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for