title: Convert from unsigned char array to double
body: <p>I have a double converted to a unsigned char array. For example for value 1, the array becomes {64, 240, 0, 0, 0, 0, 0, 0}. Now I tried to convert the array back by using the following code, but all I got was crapy values...</p>
  
  <pre><code>double* pdfOutput = (double*)malloc(sizeof(double));
  memcpy(pdfOutput, pInputArray, sizeof(double));
  </code></pre>
  
  <p>Would you please let me know where the problem is? Thanks.</p>
  
  <p><strong>Edit</strong>: The pInputArray is generated by LabVIEW. Basically what I am trying to do here is to make a program talking with a LabVIEW VI. So I don't have the control of the input array...</p>