Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Creating a form inside a DLL
Re: Creating a form inside a DLL [message #33907 is a reply to message #33905] Sat, 24 September 2011 21:33 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
tcler wrote on Sat, 24 September 2011 15:01

ok, next question. how to create custom sorting function for column in arrayctrl?
int cmpv(const Value& row1, const Value& row2)
{
	if (pureValue (String(row1)) > pureValue (String(row2))) return 0; else return 1;
}

function works fine, but sorting the table does not:
ExampleTable.ColumnAt(2).Sorting(cmpv);

access violation in Upp::sAC_ColumnSort::operator()(const Upp::Value & a, const Upp::Value & b):
ExampleTable.ColumnAt(2).Sorting(FnValueOrder(cmpv));

any ideas, please.


I am sorry, but there is too many variable not quoted in your post.

I suggest you to provide some minimal testcase (one complete enough to compile and run).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scatter: To find width bwt any two points.
Next Topic: gridctrl with sql
Goto Forum:
  


Current Time: Fri Jul 18 07:23:02 CEST 2025

Total time taken to generate the page: 0.04270 seconds