* New function wxObjectInputStream::Recall()
* Fixes in object serializer,dynlib,LoadObject/StoreObject * Updates for serialization. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,8 +235,13 @@ void wxObject::StoreObject( wxObjectOutputStream& stream )
|
||||
{
|
||||
wxString obj_name = wxString(GetClassInfo()->GetClassName()) + "_Serialize";
|
||||
wxLibrary *lib = wxTheLibraries.LoadLibrary("wxserial");
|
||||
WXSERIAL(wxObject) *serial =
|
||||
(WXSERIAL(wxObject) *)lib->CreateObject( obj_name );
|
||||
WXSERIAL(wxObject) *serial;
|
||||
|
||||
if (!lib) {
|
||||
wxMessageBox("Can't load wxSerial dynamic library.", "Alert !");
|
||||
return;
|
||||
}
|
||||
serial = (WXSERIAL(wxObject) *)lib->CreateObject( obj_name );
|
||||
|
||||
if (!serial) {
|
||||
wxString message;
|
||||
|
Reference in New Issue
Block a user