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 #19616 is a reply to message #19615] Tue, 23 December 2008 09:13 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Ion.

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.


[Updated on: Tue, 23 December 2008 09:46]

Report message to a moderator

 
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 12 23:59:23 CEST 2024

Total time taken to generate the page: 0.03054 seconds