예제 #1
0
파일: fileutil.cpp 프로젝트: gkathire/wxVCL
int CompareFilenames(wxString const & Filename1, wxString const & Filename2)
{
#ifdef WXMSW
	return AnsiCompareText(Filename1, Filename2);
#else
	return AnsiCompareStr(Filename1, Filename2);
#endif
}
예제 #2
0
//---------------------------------------------------------------------------
int __fastcall NamedObjectSortProc(void * Item1, void * Item2)
{
  bool HasPrefix1 = ((TNamedObject *)Item1)->Hidden;
  bool HasPrefix2 = ((TNamedObject *)Item2)->Hidden;
  if (HasPrefix1 && !HasPrefix2) return -1;
    else
  if (!HasPrefix1 && HasPrefix2) return 1;
    else
  return AnsiCompareStr(((TNamedObject *)Item1)->Name, ((TNamedObject *)Item2)->Name);
}