> From: Atul Shingade [mailto:[EMAIL PROTECTED]]
> I am using DmQuickSort Function but I dont know
> how should I use DmCompareF call back function.

DmComparF is not a function, but rather is a typedef for a certain type of
function.  You need to write a function yourself that matches the function
signature in that typedef.  You'll write this "callback" function but never
actually call it.  You just pass the callback function's address to the
system in the DmQuickSort call, and then the system will call it
automatically several times during the sort, as needed.

This callback function has to simply compare two records and return a result
saying if they are equal, or which one is greater.  Since you want
alphabetical order, your callback will probably involve StrCompare or
similar logic.  This whole callback mechanism is used because the system has
no idea of the internal format of your database records.  So the system asks
you to help it out with your own custom function that does know the format
and how to compare them.

The API documentation covers the details...

-slj-



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to