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 » Add layout
Re: Add layout [message #36926 is a reply to message #36914] Sun, 22 July 2012 22:51 Go to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hello Varu

The concepts you use are rather advanced for me. However I can tell you that with this declaration:
class PLC_COMPILER : public WithPLC_COMPILERLayout<TopWindow>
{
	public:
		typedef PLC_COMPILER CLASSNAME;
...		
		void (*p[256] ) ();

This is not permitted:
p[0] = &Add();


However this is permitted:
p[0] = Add;


If Add() is declared static.

If you really needed a pointer to member function you can check that here ( http://www.codeguru.com/cpp/cpp/article.php/c17401/C-Tutoria l-PointertoMember-Function.htm).

U++ callbacks are rather nice and simple. You can see a small introduction here (http://www.ultimatepp.org/www$uppweb$overview$en-us.html)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIDE configuration Problems
Next Topic: running program at different speeds
Goto Forum:
  


Current Time: Sun Aug 24 20:39:42 CEST 2025

Total time taken to generate the page: 0.05208 seconds