i wanted convert these comment to a macro:
//__declspec(property(get = GetFunctionName, put = SetFunctionName)) int PropertyName;
#define Property(x,y) (j) __declspec(property((get = x),(put = y))) (j)
GetFunctionName() and SetFunctionName() are functions for change and get values.
heres how i'm using it:
Property(GetValueA, SetValueA) int ValueA;
but i'm getting problems for use the macro:(
error message:
"IntelliSense: this declaration has no storage class or type specifier"
can anyone advice me?
heres the correct one with original:
__declspec(property(get = GetValueA, put = SetValueA)) int ValueA;