masterlodi
MIS
I need to write data to a binary file.
Integers and strings I'm fine with. But how can I write a float as binary data?
Integers and strings I'm fine with. But how can I write a float as binary data?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
0x1,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x3,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x5,0x0,0x0,0x0
float fVal;
UCHAR uFileImage[964];
memcpy(&fVal, uFileImage + fOffset, sizeof(float));