PDA

View Full Version : Very Quick Error Fixing Question


FreakSoftware
2002.08.04, 12:04 PM
How do I get rid of this error in CodeWarrior?

Error : illegal operands 'unsigned char[256]' = 'unsigned char[256]'
InputDeviceElement.cp line 486 elementName = elementNameValue;

thank you

Jeff Binder
2002.08.04, 01:00 PM
You're trying to set the address of one array to that of another, which you can't do. I would assume you're trying to copy the contents of the arrays, in which case you have to do this:

memcpy(elementName, elementNameValue, sizeof(elementNameValue));

HTH

FreakSoftware
2002.08.04, 01:29 PM
Originally posted by Jeff Binder


Thanks.