// Author: Julian Smart
// Modified by: Vadim Zeitlin: merge with the MDI version and general cleanup
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) 1998 Julian Smart
// (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
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
);
}