objects in c++ , and saving their s

liahKor

New member
objects in c++ , and saving their s

hi , I am looking for a way to save c++ objects to files (serializing). I want to create an object and save /restore it`s state at every run of the program . I think there are 2 possible solutions: #1 serializing the object #2 create the object in java (then it`s not a problem to save it) and call/use it`s methods (which need some parameter passing) from c++. if you know how to do either of those please let me know
 

stac

New member
somel links.....

well you can write method to save all values to file and restore them like it was done here http://www.devx.com/GetHelpOn/10MinuteSolution/16988/0/page/1 or use some libs to do the job for you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_serialization.3a_.serializing_an_object.asp http://s11n.net/s11n​
אם היית עובד לעומת זאת בPHP התכונה הזאת כבר בנויה בתוך המערכת.
 
למעלה