Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:39
David Crow31-Mar-06 7:39 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:14
David Crow31-Mar-06 7:14 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:19
FarPointer31-Mar-06 7:19 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:31
David Crow31-Mar-06 7:31 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:35
FarPointer31-Mar-06 7:35 
GeneralRe: Help with multi-sort Pin
Maximilien31-Mar-06 10:16
Maximilien31-Mar-06 10:16 
GeneralRe: Help with multi-sort Pin
Kurt _B31-Mar-06 7:23
Kurt _B31-Mar-06 7:23 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:38
David Crow31-Mar-06 7:38 
int bynameinage( const void * v1, const void * v2 )
{
    pmyData data1 = *(pmyData *) v1;
    pmyData data2 = *(pmyData *) v2;
    
    int dt = data1->age - data2->age;
    
    if (dt != 0)
        return dt;
 
    // same age so check name
    return _tcscmp(data1->name, data2->name);    
}
...
qsort(..., bynameinage);



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:43
FarPointer31-Mar-06 7:43 
QuestionCallback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 5:48
b_p_smith31-Mar-06 5:48 
AnswerRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:05
Kurt _B31-Mar-06 6:05 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 6:26
b_p_smith31-Mar-06 6:26 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:31
Kurt _B31-Mar-06 6:31 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 6:41
b_p_smith31-Mar-06 6:41 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:45
Kurt _B31-Mar-06 6:45 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 7:14
b_p_smith31-Mar-06 7:14 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 7:21
Kurt _B31-Mar-06 7:21 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 8:01
b_p_smith31-Mar-06 8:01 
QuestionAfxLoadLibrary problems Pin
netsharq31-Mar-06 5:39
netsharq31-Mar-06 5:39 
AnswerRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 5:49
David Crow31-Mar-06 5:49 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 6:19
netsharq31-Mar-06 6:19 
GeneralRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 7:07
David Crow31-Mar-06 7:07 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 7:23
netsharq31-Mar-06 7:23 
GeneralRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 7:42
David Crow31-Mar-06 7:42 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 8:00
netsharq31-Mar-06 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.