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 » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » ArrayCrl - compiling error
ArrayCrl - compiling error [message #200] Fri, 02 December 2005 10:54 Go to next message
jobs is currently offline  jobs
Messages: 6
Registered: November 2005
Promising Member
I've got compiling errors within this code:

localHTML::localHTML()
{
	CtrlLayout(*this, "Localize HTML files");
	butDir <<= THISBACK1(DoBrowse, &path_a);
	butLocalize <<= THISBACK(LocalizeAll);	
	file_mask <<= "*.html *.htm";
	tableFiles.AddColumn("Name");
	tableFiles.AddColumn("Path");	
	tableFiles.AddColumn("Check");
	[B]tableFiles.WhenLeftClick <<= THISBACK(ShowFile);[/B]

}


void localHTML::ShowFile()
{
	int row = tableFiles.GetCursor();
	if (row +1) {
	String file( (const String) tableFiles.GetColumn(row, 0));
	rtxView.SetQTF(LoadFile((const char*)file));
	}
}


Quote:

C:\Devel\MyApps\localHTML\main.cpp: In constructor `localHTML::localHTML()':
C:\Devel\MyApps\localHTML\main.cpp:26: error: no match for 'operator<<=' in '((WithlocalHTMLLayout<TopWindow>*)this)->Withloca
lHTMLLayout<TopWindow>::tableFiles.ArrayCtrl::WhenLeftClick <<= callback(OBJECT*, void (METHOD::*)()) [with OBJECT = local
HTML, METHOD = localHTML](&localHTML::ShowFile)'


Why doesn't match callback ArrayCtrl.WhenLeftClick (neither others callbacks)?

Thanks and regards!

Re: ArrayCrl - compiling error [message #201 is a reply to message #200] Fri, 02 December 2005 11:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
jobs wrote on Fri, 02 December 2005 04:54

I've got compiling errors within this code:

localHTML::localHTML()
.......
	tableFiles.AddColumn("Check");
	[B]tableFiles.WhenLeftClick <<= THISBACK(ShowFile);[/B]

}


Why doesn't match callback ArrayCtrl.WhenLeftClick (neither others callbacks)?

Thanks and regards!




Use '=' instead of '<<=':

tableFiles.WhenLeftClick = THISBACK(ShowFile).

<<= is Ctrl's method, it is a shortcut to WhenAction common Callback. (I mean: Ctrl x; x.WhenAction = .... can be written as x <<= ....).

Mirek
Re: ArrayCrl - compiling error [message #202 is a reply to message #201] Fri, 02 December 2005 12:17 Go to previous message
jobs is currently offline  jobs
Messages: 6
Registered: November 2005
Promising Member
thanks Mirek!!!

and for your prompt answering!

regards,
Emil
Previous Topic: howto see assembly code? [SOLVED]
Next Topic: Watching global variables in IDE debugger with MSC7-1
Goto Forum:
  


Current Time: Mon Apr 29 11:20:44 CEST 2024

Total time taken to generate the page: 0.03211 seconds