Boost logo

Boost Users :

From: Bruno Poinas (bpoinas_at_[hidden])
Date: 2006-07-31 11:32:18


Hello,

 

I just recently began using the boost library, I want to write and read
string to serialized objects with the function 'xml_oarchive' and
'xml_iarchive'.

When I execute this code (with visual c++.net v. 7.1) :

 

  std::ofstream ofs("C:\\Save.xml");

  const wchar_t * ptr;

  ptr=m_strEdit.GetBuffer();

  assert(ofs.good());

  boost::archive::xml_oarchive oa(ofs);

  oa.save(ptr);

 

  wchar_t str[512];

  std::ifstream ifs("C:\\Save.xml");

  boost::archive::xml_iarchive ia(ifs,0);

  ia.load(str);

  ifs.close();

 

the programm failed :

 

  

 

Thanks and regards,

 

Bruno POINAS

ActiCM S.A.

122, rue du Rocher de Lorzier - Centr'Alp - 38430 - MOIRANS

 

 




image002.jpg

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net