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 » Passing an ArrayCtrl / SqlArray to a function template
Re: Passing an ArrayCtrl / SqlArray to a function template [message #49283 is a reply to message #49281] Mon, 15 January 2018 16:48 Go to previous messageGo to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi Omari,
thank you for your prompt answer.

Do you know if it is possible to use a function of a namespace with THISBACK?

My utilities library is defined as a namespace named util.
When I use the following syntax:

buttonExport.WhenPush = THISBACK1(util::ExportCSV, Jobs);


I got from the compiler Error C3083, Error C2039, Error C2065.

So I had to define a method:

void JobList::Do_export()
{
	util::ExportCSV(Jobs);
}


And then assign that method to the button:

buttonExport.WhenPush = THISBACK(Do_export);


Regards,
Giorgio
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: build methods
Next Topic: StreamRasterEncoder?
Goto Forum:
  


Current Time: Tue Apr 23 16:13:58 CEST 2024

Total time taken to generate the page: 0.02096 seconds