int CompareFilenames(wxString const & Filename1, wxString const & Filename2) { #ifdef WXMSW return AnsiCompareText(Filename1, Filename2); #else return AnsiCompareStr(Filename1, Filename2); #endif }
//--------------------------------------------------------------------------- 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); }