U++ framework
Do not panic. Ask here before giving up.

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: Fri May 29 19:48:10 GMT+2 2026

Total time taken to generate the page: 0.00965 seconds