wxCommandEvent e;
// \8f\91\8cÉ\82É\91Î\89\9e\82µ\82Ä\82¢\82é\82©\82Ç\82¤\82©\8am\94F\81B
- if (asFiles.Count() == 1 && this->mainFrame->LoadTPI(asFiles[0]) != -1)
+ if (asFiles.GetCount() == 1 && this->mainFrame->LoadTPI(asFiles[0]) != -1)
{
// \8f\91\8cÉ\82ð\8aJ\82\81B
this->mainFrame->fnArchive = wxFileName(asFiles[0]);
\r
// \83\\81[\83g\81B\r
this->showFileInfo.Sort(& ListCtrlCompareProc);\r
- this->SetItemCount(this->showFileInfo.Count());\r
- this->RefreshItems(0, this->showFileInfo.Count() - 1);\r
+ this->SetItemCount(this->showFileInfo.GetCount());\r
+ this->RefreshItems(0, this->showFileInfo.GetCount() - 1);\r
}\r
\r
//******************************************************************************\r
this->cbFileName->SetValue(((MainFrame *) this->GetParent())->fnArchive.GetFullName());
// \93W\8aJ\90æ\82ð\97\\91ª\81B\82½\82¾\82µDTV\83X\83L\83\83\83\93\82É\8e\9e\8aÔ\82ª\82©\82©\82é\8fê\8d\87\82Í\83X\83L\83b\83v\89Â\94\\81B
- if (this->files.Count() < 3000 || ::AskDlg(wxT("This archive contains so many files that it takes long to check Directory Traversal Vulnerability(DTV) problem. If you are sure this archive is safe, you can skip this scanning process. Do you want to scan for DTV problem?"), this) == wxYES)
+ if (this->files.GetCount() < 3000 || ::AskDlg(wxT("This archive contains so many files that it takes long to check Directory Traversal Vulnerability(DTV) problem. If you are sure this archive is safe, you can skip this scanning process. Do you want to scan for DTV problem?"), this) == wxYES)
{
wxNotebookEvent e;
e.SetSelection(-3);
if (bReallyShow && this->lcFiles->GetItemCount() == 0)
{
// \83t\83@\83C\83\8b\83\8a\83X\83g\82ð\92Ç\89Á\81B
- for (size_t i = 0; i < this->files.Count(); i++)
+ for (size_t i = 0; i < this->files.GetCount(); i++)
{
this->lcFiles->InsertItem(i, this->files[i]);
}
if (bIsMake)
{
// \8ai\94[\83p\83X\82ð\90\84\91ª\81B
- for (size_t i = 0; i < this->files.Count(); i++)
+ for (size_t i = 0; i < this->files.GetCount(); i++)
{
if (bReallyShow)
{
// \8ae\83t\83@\83C\83\8b\82É\83p\83X\82ð\95t\89Á\81B
bool fDTVWarning = false;
- for (size_t i = 0; i < this->files.Count(); i++)
+ for (size_t i = 0; i < this->files.GetCount(); i++)
{
wxString szOutputFile = szOutputRootDir + wxFileName::GetPathSeparator();
wxFileName fnStored(this->files[i]);
mkDlg.files = * (wxArrayString *) e.GetClientData();
swInfo.fnDestinationDirectory = wxFileName::DirName(wxFileName(mkDlg.files[0]).GetPath());
// \91\8a\91Î\83p\83X\82É\95Ï\8a·\81B
- for (size_t n = 0; n < mkDlg.files.Count(); n++)
+ for (size_t n = 0; n < mkDlg.files.GetCount(); n++)
{
wxFileName fn(mkDlg.files[n]);
bool fIsDir = fn.DirExists() && ! fn.FileExists();
// \83X\83e\81[\83^\83X\83o\81[\90Ý\92è\81B
this->statusbar->SetStatusText(aiInfo.fiInfo.szTypeName, 0);
- this->statusbar->SetStatusText(wxString::Format(wxT("%d file(s)"), this->fileinfo.Count()), 1);
+ this->statusbar->SetStatusText(wxString::Format(wxT("%d file(s)"), this->fileinfo.GetCount()), 1);
this->statusbar->SetStatusText(aiInfo.llUnpackedSize.ToString() + wxT(" B -> ") + aiInfo.llPackedSize.ToString() + wxT(" B"), 2);
this->statusbar->SetStatusText(wxString::Format(wxT("%3.1f%%"), aiInfo.wCompressRatio / 10.0), 3);
this->statusbar->SetStatusText(this->fnArchive.GetFullPath(), 4);
{
// \93W\8aJ\91Î\8fÛ\82ð\8c\88\92è\81B
wxFileDataObject objFile;
- for (size_t i = 0; i < mkDlg.files.Count(); i++)
+ for (size_t i = 0; i < mkDlg.files.GetCount(); i++)
{
wxString szFileName = swInfo.fnDestinationDirectory.GetPathWithSep() + wxFileName(mkDlg.files[i]).GetFullName();
if (nMode == 2)
// \83\\81[\83g\82µ\82Ä\95\\8e¦\81B
this->list_ctrl->showFileInfo.Sort(& ListCtrlCompareProc);
- this->list_ctrl->SetItemCount(this->list_ctrl->showFileInfo.Count());
+ this->list_ctrl->SetItemCount(this->list_ctrl->showFileInfo.GetCount());
}
void MainFrame::OnTreeBeginDrag(wxTreeEvent& e)
if (_nFileCount != NULL)\r
{\r
// \83t\83@\83C\83\8b\90\94\82Í\91½\82ß\82É\8eæ\82Á\82Ä\82¨\82\81B\r
- * _nFileCount = g_asOutput.Count();\r
+ * _nFileCount = g_asOutput.GetCount();\r
}\r
return nErrorCode;\r
}\r
{\r
* _hArchive = & g_asOutput;\r
}\r
- return g_asOutput.Count() == 0 ? TPI_ERROR_UNDEFINED : TPI_ERROR_SUCCESS;\r
+ return g_asOutput.GetCount() == 0 ? TPI_ERROR_UNDEFINED : TPI_ERROR_SUCCESS;\r
}\r
\r
int __stdcall CloseArchive\r
piDate = MakePosInfo(wxT("date"));\r
}\r
\r
- if (s_uCurrentLine >= asOutput.Count())\r
+ if (s_uCurrentLine >= asOutput.GetCount())\r
{\r
// \8f\91\8cÉ\82ª\93Ç\82Ý\8d\9e\82ß\82È\82©\82Á\82½\81H\r
return TPI_ERROR_ARC_UNSUPPORTED;\r
nErrorCodeConvert(\r
((int (__stdcall *)(void *, int, wchar_t *, wchar_t *)) pP)(\r
hArc,\r
- (_szFiles.Count() != 0 && _szFiles.Index(wxString(hdInfo.FileNameW)) == wxNOT_FOUND) ? RAR_SKIP : _uCommand == TPI_COMMAND_EXTRACT ? RAR_EXTRACT : RAR_TEST,\r
+ (_szFiles.GetCount() != 0 && _szFiles.Index(wxString(hdInfo.FileNameW)) == wxNOT_FOUND) ? RAR_SKIP : _uCommand == TPI_COMMAND_EXTRACT ? RAR_EXTRACT : RAR_TEST,\r
_swInfo->fStoreDirectoryPathes ? _swInfo->fnDestinationDirectory.GetFullPath().wchar_str() : NULL,\r
_swInfo->fStoreDirectoryPathes ? NULL : (_swInfo->fnDestinationDirectory.GetPathWithSep() + wxFileName(hdInfo.FileNameW).GetFullName()).wchar_str()\r
)\r
}\r
\r
// \8f\88\97\9d\91Î\8fÛ\82©\82Ç\82¤\82©\94»\92è\81B\r
- if (_szFiles.Count() != 0 && _szFiles.Index(fiInfo.szStoredName) == wxNOT_FOUND)\r
+ if (_szFiles.GetCount() != 0 && _szFiles.Index(fiInfo.szStoredName) == wxNOT_FOUND)\r
{\r
continue;\r
}\r