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++ Library support » U++ Widgets - General questions or Mixed problems » public Ctrl in my class - param in constructor problem
Re: public Ctrl in my class - param in constructor problem [message #29951 is a reply to message #29948] Wed, 01 December 2010 12:33 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,

You have a slight problem in your C++ syntax. It should be constructor():var(init_value),another_var(init){ constructor body; }. That is in your case:

class SYSTEM_LAY : public WithsystemLayout<TopWindow> {	
	public:	
	ChartBOA chartsystem;
typedef	SYSTEM_LAY CLASSNAME;
	SYSTEM_LAY():chartsystem(7){
		Add(chartsystem.LeftPos(0, 800).TopPos(0, 550));
	}

Also, in the last code snippet, the constructor definition misses the function body (maybe you just forgot to copy it, but I mention it to be sure Wink ), there must be one even if it is empty:
ChartBOA::ChartBOA(int maxserii) : MaxSerii(maxserii){}


Otherwise it seems OK.

Best regards,
Honza
 
Read Message icon10.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GetDefaultPrinter Call does not compile
Next Topic: Label box has no disabled look
Goto Forum:
  


Current Time: Thu Jun 06 11:41:25 CEST 2024

Total time taken to generate the page: 0.02533 seconds