+wxObject *wxCreateDynamicObject(const char *name)
+{
+ if (wxClassInfo::sm_classTable)
+ {
+ wxClassInfo *info = (wxClassInfo *)wxClassInfo::sm_classTable->Get(name);
+ if (!info)
+ return (wxObject *)NULL;
+
+ return info->CreateObject();
+ }
+ else
+ {
+ wxClassInfo *info = wxClassInfo::sm_first;
+ while (info)
+ {
+ if (info->m_className && strcmp(info->m_className, name) == 0)
+ return info->CreateObject();
+ info = info->m_next;
+ }
+ return (wxObject*) NULL;
+ }
+ return (wxObject*) NULL;
+}
+
+#ifdef wxUSE_SERIAL