Export (0) Print
Expand All

Compiler Error C2777

Visual Studio 6.0

only one 'put' method can be specified per property

You can only specify one put function in the property extended attribute. This error occurs when multiple put functions are specified. For example:

struct A {
   __declspec(property(put=PutProp,put=PutPropToo))
      int prop;      // error C2777
   int PutProp(void);
   int PutPropToo(void);
};
Show:
© 2014 Microsoft