Compiler Error C2774

'identifier' : no 'put' method is associated with this property

A structure or class data member declared with the property extended attribute does not have a put function specified, and this data member is used in an expression that tries to set its value. For example:

struct A {
   __declspec(property(get=GetProp)) int prop;
   int GetProp(void);
};

void f(A* pa, int val)
{
    pa->prop = val;      // error C2774
    pa->prop++;      // error C2774
}