Archive for August, 2007
how to sort CAtlArray using qsort
This is nothing new at all,here is the source code:
CAtlArray< CSomeClass*> m_myArray; qsort(m_myArray.GetData(), m_myArray.GetCount(), sizeof(CSomeClass*), (int(*)(const void*, const void*))SortTheArray);
the Comparison function would look like the following:
Song:When You Say Nothing At All
It’s amazing how you can speak right to my heart
Without saying a word, you can light up the dark
Try as I may I could never explain
What I hear when you don’t say a thing