One of the greatest joys of Windows programming is remembering that in all open file calls you need to put 'wb' or 'rb' or ios :: binary so that Windows doesnβt convert all your 0x13s in a fun way.
I just had to convert a bunch of well-standard code to use Createfile () to get a specific flag - and it occurred to me that there was no way to specify a binary.
How to know this? I really don't want it to change the bytes in my MP4 stream, thanks very very much.
c ++ winapi
Martin beckett
source share