Home » Community » Newbie corner » Creating a form inside a DLL
Re: Creating a form inside a DLL [message #33969 is a reply to message #33908] |
Sun, 02 October 2011 10:12   |
tcler
Messages: 4 Registered: September 2011
|
Junior Member |
|
|
question still relevant.
upd.: solved. sorting class from ArrayCtrl.cpp:
struct sAC_ColumnSort : public ValueOrder {
bool descending;
const ValueOrder *order;
int (*cmp)(const Value& a, const Value& b);
virtual bool operator()(const Value& a, const Value& b) const {
return descending ? cmp ? (*cmp)(b, a) < 0 : (*order)(b, a)
: cmp ? (*cmp)(a, b) < 0 : (*order)(a, b);
}
};
cmp function must return a negative value if value1 > value2 and positive if value1 < value2. why not true/false??
[Updated on: Tue, 04 October 2011 17:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jul 19 11:24:01 CEST 2025
Total time taken to generate the page: 0.03930 seconds
|