double Time;
...
WriteFile( tmp_pipe, Time, sizeof(double), &dwWritten, NULL );
The above reports :
error C2664: 'WriteFile' : cannot convert parameter 2 from 'double' to 'LPCVOID'
double Time;
...
WriteFile( tmp_pipe, Time, sizeof(double), &dwWritten, NULL );
The above reports :
error C2664: 'WriteFile' : cannot convert parameter 2 from 'double' to 'LPCVOID'
You want &Time
, not Time
, for parameter 2 of the function call.