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 » Usage of images in different .h and .cpp files
Re: Usage of images in different .h and .cpp files [message #27602 is a reply to message #27600] Sun, 25 July 2010 15:23 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

281264 wrote on Sun, 25 July 2010 13:52

Hi,

I have the following question: how to use images contained in a single .iml file in different classes, each one defined by its corresponding .h and .cpp file?

Cheers,

Javier

Hi Javier,

Just put
#define IMAGECLASS MyImages
#define IMAGEFILE images.iml
#include <Draw/iml_header.h>
in your headers and
#define IMAGECLASS MyImages
#define IMAGEFILE images.iml
#include <Draw/iml_source.h>
in one of your cpp files.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Custom Control
Next Topic: How to compare child in function virtual void ChildMouseEvent with ctrl’s value.
Goto Forum:
  


Current Time: Sun Jun 22 23:55:44 CEST 2025

Total time taken to generate the page: 0.04006 seconds