Copying Double to a void pointer in C++ : <p>I'm copying a double value to a Void*.How can I do it in C++.</p>

<p>Currently I've tried in C++10</p>

<p>strcpy(Trade->MtTr.MPData->MPTrXML.da,dCou);</p>

<p>Trade->MtTr.MPData->MPTrXML.da-->this is a Void*</p>

<p>dCou is double.</p>

<p>strcpy(Trade->MtTr.MPData->MPTrXML.da,dCou);</p>

<p>I expect the void* should contain the double value.
In actual I'm getting error as:</p>

<p>error C2665: 'strcpy' : none of the 2 overloads could convert all the argument types</p>

<p>while trying to match the argument list '(void *, double)'</p>
