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 » Draw, Display, Images, Bitmaps, Icons » Compile package with iml file problem!
Re: Compile package with iml file problem! [message #19617 is a reply to message #19616] Tue, 23 December 2008 11:44 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Sender Ghost wrote on Tue, 23 December 2008 10:13


You didn't include "Draw/iml_source.h" header file in "UApplication\MainWorkSpace.cpp". Unified diff for fixed file below:
 #include "MainWorkSpace.h"
 
 //using namespace UPP;
 
 namespace UA{
 
+#define IMAGECLASS UAImg
+#define IMAGEFILE <UApplication/UApplication.iml>
+#include <Draw/iml_source.h>
+
 UApplication::UApplication() {
 	Sizeable();
 	Zoomable();
 	CtrlLayout(*this);
 	AddFrame(menu);
 	Icon(UAImg::MainIcon());


As written in the GUI Tutorial:
Quote:


Note: #include <Draw/iml.h> works only when images are to be used in single .cpp file, otherwise you must put "obsuscated" sequence with #include <Draw/iml_header.h> to you header and #include <Draw/iml_source.h> to any .cpp file.




Sure! thanks...
 
Read Message
Read Message
Read Message
Previous Topic: Draw::DrawImageOp optimization bug
Next Topic: To split Images code to "h" & "cpp" file has a link error, "multiple de
Goto Forum:
  


Current Time: Sun May 05 03:07:38 CEST 2024

Total time taken to generate the page: 0.03355 seconds