default:
wxFAIL_MSG( "unknown mode ");
}
- const wxDocVector
- docList = wxDocManager::GetDocumentManager()->GetDocumentsVector();
+
+#ifdef __VISUALC6__
+ const int docsCount =
+ wxDocManager::GetDocumentManager()->GetDocuments().GetCount();
+#else
+ const int docsCount =
+ wxDocManager::GetDocumentManager()->GetDocumentsVector().size();
+#endif
wxLogMessage
(
"\n"
"Usage: docview [--{mdi,sdi,single}]",
modeName,
- static_cast<int>(docList.size())
+ docsCount
);
}