หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
#pragma'pragma_name' should only be used at global scope
Remarks
A pragma directive that must be applied at a global scope, was found in a different scope.
The warning applies to the following pragma directives:
detect_mismatchextern_absolutemake_public
Example
The following example generates C4384.
// C4384.cpp
// compile with: /c /W1
namespace n {
#pragma make_public(N::C) // C4384
namespace N {
class C {};
}
}