नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'declarator' : a GUID can only be associated with a class, interface or namespace
Remarks
A user-defined structure other than class, interface, or namespace cannot have a GUID.
This warning is off by default. See Compiler Warnings That Are Off by Default for more information.
Example
The following code example generates C4917:
// C4917.cpp
// compile with: /W1
#pragma warning(default : 4917)
__declspec(uuid("00000000-0000-0000-0000-000000000001")) struct S
{
} s; // C4917, don't put uuid on a struct
int main()
{
}