title: CString Hex value conversion to Byte Array
body: <p>I have been trying to carry out a conversion from CString that contains Hex string to a Byte array and have been </p>
  
  <p>unsuccessful so far. I have looked on forums and none of them seem to help so far. Is there a function with just a few </p>
  
  <p>lines of code to do this conversion?</p>
  
  <p>My code:</p>
  
  <pre><code>BYTE abyData[8];    // BYTE = unsigned char
  
  CString sByte = "0E00000000000400";
  </code></pre>
  
  <p>Expecting: </p>
  
  <pre><code>abyData[0] = 0x0E;
  abyData[6] = 0x04; // etc.
  </code></pre>