On 1/12/07, Mark Wyszomierski <markww@gmail.com> wrote:
Hi,

Hi Mark, 

with (very short sample app). Can anyone see what I'm doing wrong, or
if there is an error with the boost code?

No the boost code is OK. and in fact you are lucky that you get this error. If you look real closely to the "binary" output file you'll see that a byte that reads OA has been replaced by OD OA.

Use std::ios::binary, or rather std::ios_base::binary, when you create the ofstream as well.

hth,
- levent


--
Server Levent Yilmaz
Mechanical Engineering @ PITT