नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'attribute': attribute has undefined behavior on a nested UDT
Remarks
Attributes that apply to nested UDTs (user-defined type, which could be a typedef, union, or struct) may be ignored.
Example
The following code shows how this warning would be generated:
// C4912.cpp
// compile with: /W1
#include <windows.h>
[emitidl, module(name="xx")];
[object, uuid("00000000-0000-0000-0000-000000000002")]
__interface IMy
{
};
[coclass, default(IMy), appobject, uuid("00000000-0000-0000-0000-000000000001")]
class CMy : public IMy
{
[export, v1_enum] typedef enum myEnum { k3_1 = 1, k3_2 = 2 } myEnumv; // C4912
};
int main()
{
}