How do I serialize an array? I know it is possible to serialize int, CStrings, and other such variable forms. However, what if I have an hypothetical object, lets call it a CCat object. This object is made from 3 integer variables, and a CString variable. How do I serialize the whole object? Now the real question comes, how do I serialize an array of CCat objects?
What I'm looking to do is to save to disk and then later draw from that disk some information. Serialized data, so to speak. Not too hard. I have done it many times with common variables, but never a whole object. What makes it tough for me is the array. Further complicating matters is that my array is a two-dimensional array (i.e.
CCat[25][10]). In otherwords, I have 25 CCats across and 10 rows of CCats.
Any help on this matter would be greatly appriciated. Happy Holidays.
Nyjils-)
What I'm looking to do is to save to disk and then later draw from that disk some information. Serialized data, so to speak. Not too hard. I have done it many times with common variables, but never a whole object. What makes it tough for me is the array. Further complicating matters is that my array is a two-dimensional array (i.e.
CCat[25][10]). In otherwords, I have 25 CCats across and 10 rows of CCats.
Any help on this matter would be greatly appriciated. Happy Holidays.
Nyjils-)