error

strcpy(sendbuffer,(char*)&this);

I wrote the above statement in a member function of a class but it shows an error
"lvalue required as unary '&' operand".sendbuffer is a char array of 500 length.I want to typecast the object in a character array and then put it in a character array named sendbuffer.can anyone suggest anything.
Last edited on
Topic archived. No new replies allowed.