Posts Tagged ‘source-code’


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:

August 12th, 2007 in Programming | 3 comments


Google Code Prettify for wordpress

This small wordpress plugin enable syntax highlighting of code snippets in your post using Google Code Prettify.

Notice: you will need to have JavaScript enabled in your browser for this to work.

April 28th, 2007 in wordpress | 119 comments