Serializing CMapStringToPtr
-
I am serializing CMapStringToPtr object without any problem, key by key, pointer to pointer. For this case, the key order it is matter. So, if I archive this CMapStringToPtr object, and de-archive on the same machine, the key order are fine. But, if I de-archive this object on other machine, the key order are not the same, and this is a PROBLEM. How can avoid this issue ? Yes, I could serialize another CStringArray with the CMapStringToPtr keys, but I don't know if this a good idea ... can you tell me how to overcome this problem ? Thank you.
-
I am serializing CMapStringToPtr object without any problem, key by key, pointer to pointer. For this case, the key order it is matter. So, if I archive this CMapStringToPtr object, and de-archive on the same machine, the key order are fine. But, if I de-archive this object on other machine, the key order are not the same, and this is a PROBLEM. How can avoid this issue ? Yes, I could serialize another CStringArray with the CMapStringToPtr keys, but I don't know if this a good idea ... can you tell me how to overcome this problem ? Thank you.