Click here to Skip to main content
15,908,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to use shared-memory to map uncertain page file Pin
shusong21-Jan-05 14:06
shusong21-Jan-05 14:06 
AnswerRe: How to use shared-memory to map uncertain page file Pin
Bob Ciora21-Jan-05 19:47
Bob Ciora21-Jan-05 19:47 
QuestionHow to draw a ListView frame Pin
Björn Eiríksson21-Jan-05 13:25
sussBjörn Eiríksson21-Jan-05 13:25 
QuestionHow to perform qsort on a CList of class objects? Pin
wsquare21-Jan-05 12:51
wsquare21-Jan-05 12:51 
AnswerRe: How to perform qsort on a CList of class objects? Pin
wsquare21-Jan-05 12:56
wsquare21-Jan-05 12:56 
AnswerRe: How to perform qsort on a CList of class objects? Pin
Anonymous21-Jan-05 13:31
Anonymous21-Jan-05 13:31 
AnswerRe: How to perform qsort on a CList of class objects? Pin
Bob Ciora21-Jan-05 18:48
Bob Ciora21-Jan-05 18:48 
GeneralRe: How to perform qsort on a CList of class objects? Pin
wsquare21-Jan-05 19:58
wsquare21-Jan-05 19:58 
Hi thanks for the replies so far. I'm aware of qsort requirement and about pointers for the comparison function.

Basically the list maximum size is not determined, but with a minimum of over hundred of matchData nodes. My intention is basically to hold matching data for an input against many models. However,the number of models may differ differently based on my experimental conditions.

My ultimate aim is to perform a multi-level sort on a linked list of matching results based on each node value, say on num1 followed by num2 if they are e same. I'm hoping to improve the overall speed by using quick sort. Thus frm the best result(top of list), i would retrieve what is the model file (my modelname).

I have looked into CMap, but I don't see the need for a hashvalue lookup cos my matchresult will differ for each model against different inputs.

Thus qsort is not a must, but apparently seems that itz one of e few choices that i can do. And also perphaps after studying e Sorting Article http://www.flounder.com/sorting.htm[^] with gives me e notion for it.

I'm still in e process of writting the codes. So not too sure if the end result will turn out fine.. Frown | :(

What i'm current doing is i did another abstraction called Class SortedList where i've e sort function in it,which basically copies e content to a CArray and qsorts it.

I'm not too sure if i understand correctly but seems that the pointers are being sorted so in actual fact my original list node remains..

Or is there any better suggestion for my approach? Tks alot!Smile | :)
GeneralRe: How to perform qsort on a CList of class objects? Pin
markkuk22-Jan-05 0:03
markkuk22-Jan-05 0:03 
GeneralRe: How to perform qsort on a CList of class objects? Pin
Bob Ciora22-Jan-05 3:25
Bob Ciora22-Jan-05 3:25 
GeneralRe: How to perform qsort on a CList of class objects? Pin
markkuk23-Jan-05 4:31
markkuk23-Jan-05 4:31 
GeneralRe: How to perform qsort on a CList of class objects? Pin
Bob Ciora22-Jan-05 4:22
Bob Ciora22-Jan-05 4:22 
QuestionHow do I assign char array address to int? Pin
ErikDabrowsky21-Jan-05 10:26
ErikDabrowsky21-Jan-05 10:26 
AnswerRe: How do I assign char array address to int? Pin
Michael Dunn21-Jan-05 11:00
sitebuilderMichael Dunn21-Jan-05 11:00 
GeneralRe: How do I assign char array address to int? Pin
ErikDabrowsky21-Jan-05 11:29
ErikDabrowsky21-Jan-05 11:29 
AnswerRe: How do I assign char array address to int? Pin
markkuk22-Jan-05 0:19
markkuk22-Jan-05 0:19 
GeneralMFC app. + Ms-Dos commands Pin
holy shit21-Jan-05 9:12
holy shit21-Jan-05 9:12 
GeneralRe: MFC app. + Ms-Dos commands Pin
Chris Losinger21-Jan-05 9:19
professionalChris Losinger21-Jan-05 9:19 
GeneralRe: MFC app. + Ms-Dos commands Pin
holy shit21-Jan-05 9:28
holy shit21-Jan-05 9:28 
GeneralRe: MFC app. + Ms-Dos commands Pin
Shog921-Jan-05 9:32
sitebuilderShog921-Jan-05 9:32 
GeneralRe: MFC app. + Ms-Dos commands Pin
Chris Losinger21-Jan-05 9:34
professionalChris Losinger21-Jan-05 9:34 
GeneralRe: MFC app. + Ms-Dos commands Pin
Michael Dunn21-Jan-05 11:01
sitebuilderMichael Dunn21-Jan-05 11:01 
GeneralRe: MFC app. + Ms-Dos commands Pin
Shog921-Jan-05 11:21
sitebuilderShog921-Jan-05 11:21 
GeneralRe: MFC app. + Ms-Dos commands Pin
Michael Dunn21-Jan-05 12:05
sitebuilderMichael Dunn21-Jan-05 12:05 
GeneralRe: MFC app. + Ms-Dos commands Pin
Mircea Puiu25-Jan-05 7:35
Mircea Puiu25-Jan-05 7:35 

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.