title: Convert a hexstring to byte in C++
body: <p>I have a Hexadecimal-String looking like this:</p>
  
  <pre><code>char hexString = "1a";
  </code></pre>
  
  <p>and i want to convert it to a BYTE, so that it looks like this:</p>
  
  <pre><code>BYTE Anything[0x10] = { 0x1a };
  </code></pre>
  
  <p>after the converion.
  i need to do this for 16 strings so that i have sth looking like this at the end</p>
  
  <pre><code>BYTE Anything[0x10] = { hexToByte(hexString1), hexToByte(hexString2), 16 times };
  </code></pre>
  
  <p>any idea, because i have no clue on how to do this!</p>