I have an array of unsigned char
static unsigned char m_ucTxBuffer;
I use memcpy to initialize the first element:
But In another part of the program I want to intialize the second element. I use Borland C++ and I have an edit box that the user types in the value that will go into the second element. The way Borland handles EditBoxes is
char normalBuf ;
when I try to copy normalBuf to m_ucTxBuffer it complains that it can't convert char to unsigned char.
How would I put the value in normalBuf into m_ucTxBuffer?