virtual ostream& SaveObject(ostream& stream);
virtual istream& LoadObject(istream& stream);
#else
- virtual bool SaveObject(wxOutputStream& stream);
- virtual bool LoadObject(wxInputStream& stream);
+ virtual wxOutputStream& SaveObject(wxOutputStream& stream);
+ virtual wxInputStream& LoadObject(wxInputStream& stream);
+#endif
+
+#if wxUSE_SERIAL
+ // need this to keep from hiding the virtual from wxObject
+ virtual void LoadObject(wxObjectInputStream& stream) { wxObject::LoadObject(stream); };
#endif
// Called by wxWindows