未指定模組屬性
備註
使用 Visual C++ 屬性的程式也不會使用 模組 屬性,這是任何使用屬性的程式的必要專案。
Example
下列範例會產生 C3174:
// C3174.cpp
// C3174 expected
// uncomment the following line to resolve this C3174
// [module(name="x")];
[export]
struct S
{
int i;
};
int main()
{
}
未指定模組屬性
使用 Visual C++ 屬性的程式也不會使用 模組 屬性,這是任何使用屬性的程式的必要專案。
下列範例會產生 C3174:
// C3174.cpp
// C3174 expected
// uncomment the following line to resolve this C3174
// [module(name="x")];
[export]
struct S
{
int i;
};
int main()
{
}