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

C / C++ / MFC

 
GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
madmax000131-Mar-06 9:59
madmax000131-Mar-06 9:59 
GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
madmax00016-Apr-06 6:36
madmax00016-Apr-06 6:36 
GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
Albertino17-Apr-14 23:36
Albertino17-Apr-14 23:36 
AnswerRe: CToolTipCtrl in modeless dialog ??? Pin
madmax00016-Apr-06 6:42
madmax00016-Apr-06 6:42 
QuestionHelp with multi-sort Pin
Kurt _B31-Mar-06 6:13
Kurt _B31-Mar-06 6:13 
AnswerRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:06
FarPointer31-Mar-06 7:06 
GeneralRe: Help with multi-sort Pin
Kurt _B31-Mar-06 7:10
Kurt _B31-Mar-06 7:10 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:16
FarPointer31-Mar-06 7:16 
Well what iam actually doing is that first i will sort with respect to the name ,then sort the sorteddata with respect to the age .

int qsort_callback(const void * first, const void * second)<br />
{<br />
	struct person  *p1, * p2;<br />
	p1 = (struct person *)first;<br />
	p2 = (struct person *)second;<br />
       //According to your preference <br />
       if( (*(p1->Name)).Compare(*(p2->Name)) >0 )<br />
	{<br />
                //for the age <br />
		if(p1->Age > p2->Age)<br />
			return 1;<br />
		if(p1->Age < p2->Age)<br />
			return -1;		<br />
	}<br />
        //else same way as above <br />
<br />
}


// Well here i have tried to make sorting in one go as David says qsort is not stable one but the previous one is more logical clear ,like if later we need a more customization on the sort you again sort on the sorted data
Regards,
FarPointer

-- modified at 13:20 Friday 31st March, 2006
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 
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 

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.