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: Installation, Compiling and Running of theide » 606-dev3 compile error with iml
Re: 606-dev3 compile error with iml [message #3768 is a reply to message #3765] Fri, 23 June 2006 13:36 Go to previous message
forlano is currently offline  forlano
Messages: 1110
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Fri, 23 June 2006 10:29


Paranthesis!!!

But they were required before too here...

Mirek


Opsss... but it worked with the previous release so I was not aware of it. Here is the code of the package "iml" in the reference example coming with the distro. Now it works (Added define IMAGECLASS and iml:: everywhere.
Thanks,
Luigi

#include <CtrlLib/CtrlLib.h>

#define IMAGECLASS    iml 
#define  IMAGEFILE <iml/image.iml>
#include <Draw/iml.h>

struct App : TopWindow {
	void Paint(Draw& w)
	{
		Size sz = GetSize();
		w.DrawRect(sz, SGray);
		Size isz = iml::Smiley().GetSize();
		w.DrawImage((sz.cx - isz.cx) / 2, (sz.cy - isz.cy) / 2, iml::Smiley());
	}
	
	App()
	{
		Sizeable();
		BackPaint();
	}
};

GUI_APP_MAIN
{
	App().Run();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: upp-b605-dev1 compile error in PDFDraw
Next Topic: SVN rev. 24 chameleon related build error
Goto Forum:
  


Current Time: Fri Nov 27 03:50:51 CET 2020

Total time taken to generate the page: 0.01137 seconds