Re: [bme-develop] emoticon code in cvs
Status: Planning
Brought to you by:
sirmik
|
From: Daniel G. <al7...@ma...> - 2004-04-05 06:06:24
|
Hi > >Look into the MsnList class, there is something for sorting the > >BOutlineList. > >It would be something like this to sort a list. > > static int cmpListItem(void*,void*); //It has to be static. > > int (*ptrSort) (void*,void*); > > ptrSort = cmpListItem; > > ... > > list- >SortItems(ptrSort); > > > Yes I already looked at that code, but didn't understand it....what > doest > this mean? int (*ptrSort) (void*,void*); anyway changing the > comparison > method to static did the trick... > Essentially it's how to declare a pointer to a function, a function pointer in c++; type (*pointer) (type parameter1, type paramaeter2, ...); Daniel |