+ long version;
+ int v1, v2, v3, v4;
+ wxString verstr = m_data[i].Doc->GetRoot()->GetPropVal(
+ wxT("version"), wxT("0.0.0.0"));
+ if (wxSscanf(verstr.c_str(), wxT("%i.%i.%i.%i"),
+ &v1, &v2, &v3, &v4) == 4)
+ version = v1*256*256*256+v2*256*256+v3*256+v4;
+ else
+ version = 0;
+ if (m_version == -1)
+ m_version = version;
+ if (m_version != version)
+ wxLogError(_("Resource files must have same version number!"));
+