Click here to Skip to main content
15,919,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblem in CTreeView Pin
24-Aug-01 0:48
suss24-Aug-01 0:48 
GeneralListBox presentation Pin
24-Aug-01 0:27
suss24-Aug-01 0:27 
GeneralScroll Bars Pin
24-Aug-01 0:13
suss24-Aug-01 0:13 
GeneralRe: Scroll Bars Pin
JerzyPeter24-Aug-01 3:20
JerzyPeter24-Aug-01 3:20 
GeneralRe: Scroll Bars Pin
MAXS72U24-Aug-01 4:49
MAXS72U24-Aug-01 4:49 
GeneralRe: Scroll Bars Pin
24-Aug-01 6:18
suss24-Aug-01 6:18 
GeneralRe: Scroll Bars Pin
MAXS72U27-Aug-01 1:37
MAXS72U27-Aug-01 1:37 
Generalordering a STL - list of objects Pin
Bernhard23-Aug-01 23:59
Bernhard23-Aug-01 23:59 
in my program i use a list of pointers to objects like this:
class object
{
public:
	int x;
	int y;
};

class A
{
public:
	std::list<object*> list_b;
};

now.. i do have got problems, because i should sort this list by object.x . i have tried to use te list::sort() function.. but it obviously doesn´t work, case the program doesn´t know how to compare this objects..
is there any member function i can override?
or is there any possibility how to use a set instead of that (would be perfect) ?

i am sorry.. i really tried to find a solution on my own.. but in all the docs and webpages i was searching in this problem seemed to be too obvious... so nobody ever told me how to do this

thanx in advance
GeneralRe: ordering a STL - list of objects Pin
Tomasz Sowinski24-Aug-01 0:53
Tomasz Sowinski24-Aug-01 0:53 
GeneralThumbnails Pin
AJ12323-Aug-01 23:51
AJ12323-Aug-01 23:51 
GeneralRe: Thumbnails Pin
Not Active24-Aug-01 4:39
mentorNot Active24-Aug-01 4:39 
GeneralNeed to strip zeroes from FP value Pin
23-Aug-01 23:49
suss23-Aug-01 23:49 
GeneralRe: Need to strip zeroes from FP value Pin
Tomasz Sowinski23-Aug-01 23:54
Tomasz Sowinski23-Aug-01 23:54 
GeneralTreeCtrl&CView Pin
alexson23-Aug-01 23:28
alexson23-Aug-01 23:28 
QuestionWhat Class (MFC) Is Suitable As Canvas In Dialog Based Application Pin
23-Aug-01 22:27
suss23-Aug-01 22:27 
AnswerRe: What Class (MFC) Is Suitable As Canvas In Dialog Based Application Pin
Bernhard24-Aug-01 0:06
Bernhard24-Aug-01 0:06 
QuestionHow to send the datas in a structure using Socket Pin
23-Aug-01 20:50
suss23-Aug-01 20:50 
AnswerRe: How to send the datas in a structure using Socket Pin
markkuk23-Aug-01 23:04
markkuk23-Aug-01 23:04 
AnswerRe: How to send the datas in a structure using Socket Pin
Anders Molin24-Aug-01 1:25
professionalAnders Molin24-Aug-01 1:25 
GeneralRe: How to send the datas in a structure using Socket Pin
markkuk24-Aug-01 2:28
markkuk24-Aug-01 2:28 
GeneralTrapping Message Pin
23-Aug-01 20:40
suss23-Aug-01 20:40 
GeneralRe: Trapping Message Pin
Tomasz Sowinski23-Aug-01 23:49
Tomasz Sowinski23-Aug-01 23:49 
GeneralTrapping Message Pin
23-Aug-01 20:40
suss23-Aug-01 20:40 
QuestionHow to Maximize a Dialog Based Program But not Covering the Task Bar? Pin
Maer72723-Aug-01 20:08
Maer72723-Aug-01 20:08 
AnswerRe: How to Maximize a Dialog Based Program But not Covering the Task Bar? Pin
24-Aug-01 3:26
suss24-Aug-01 3:26 

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.