On May 8, 2008, at 3:40 PM, Dennis Yurichev wrote:

 std::ofstream ofs ("test.dat", std::ios::trunc | std::ios::binary );
 boost::archive::binary_oarchive oa(ofs);

I think you need wofstream and binary_woarchive.  I could be wrong though.  Just joined the list!

Ray