-ArchiveTestCase<Classes>::ArchiveTestCase(const wxString& name,
- int id,
- ClassFactoryT *factory,
- int options,
- const wxString& archiver,
- const wxString& unarchiver)
- : CppUnit::TestCase(std::string(name.mb_str())),
- m_factory(factory),
+ArchiveTestCase<Classes>::ArchiveTestCase(
+ string name,
+ int id,
+ wxArchiveClassFactory *factory,
+ int options,
+ const wxString& archiver,
+ const wxString& unarchiver)
+ :
+ CppUnit::TestCase(name),
+#if defined _MSC_VER && _MSC_VER < 1300
+ m_factory(dynamic_cast<Classes::ClassFactoryT*>(factory)),
+#else
+ m_factory(dynamic_cast<typename Classes::ClassFactoryT*>(factory)),
+#endif