error C2275: 'CONTACT_e_MYFAVES_Return' : illegal use of this type as an expression
: see declaration of 'CONTACT_e_MYFAVES_Return'
why ? The declaration of 'CONTACT_e_MYFAVES_Return' is ok, had been validated.
So, what's wrong with you,'CONTACT_e_MYFAVES_Return'?
Jesun's answer:









" CONTACT_e_MYFAVES_Return state;" (declaration)must placed on the beginning of function, just like the followed:









In this case, the compile option is key. In VC default compile option, there no problem.
But when compile option is strict, this style of writting can not compile with success.