Hi stuck with something,
I want to copy the value of temp1 to Buffer,
It copys across ok with no errors but the values, as printed out below are different.
temp1, 2156
buffer, 3361736
////////////////////////////////////////////////
code snippit
//////////////////////////////////////////
PVOID Buffer;
Buffer = new UCHAR[512];
unsigned __int64 temp1 = clock();
memcpy(Buffer,& temp1,512);
printf("\ntemp1 ,%d",temp1);
printf("\nbuffe r,%d \n",Buffer);
////////////////////////////////////////////////
Kind Regards
Eoin
I want to copy the value of temp1 to Buffer,
It copys across ok with no errors but the values, as printed out below are different.
temp1, 2156
buffer, 3361736
////////////////////////////////////////////////
code snippit
//////////////////////////////////////////
PVOID Buffer;
Buffer = new UCHAR[512];
unsigned __int64 temp1 = clock();
memcpy(Buffer,& temp1,512);
printf("\ntemp1 ,%d",temp1);
printf("\nbuffe r,%d \n",Buffer);
////////////////////////////////////////////////
Kind Regards
Eoin
Comment