編譯器錯誤 C2777
每個屬性只可以指定一個 'put' 方法
屬性 declspec 修飾詞具有一個put
以上的屬性。
下列範例會產生 C2777:
// C2777.cpp
struct A {
__declspec(property(put=PutProp,put=PutPropToo)) // C2777
// try the following line instead
// __declspec(property(put=PutProp))
int prop;
int PutProp(void);
int PutPropToo(void);
};