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 #27606 is a reply to message #27602] Sun, 25 July 2010 17:42 Go to previous messageGo to previous message
281264 is currently offline  281264
Messages: 272
Registered: June 2010
Location: Spain
Experienced Member
It does not work.

This is exactly what I’ve done:


1.- in the file “Prueba_OpenGL3.h” (this is the “main” .h file):
#define IMAGECLASS Imagenes
#define IMAGEFILE <prueba_OpenGL3/images.iml>
#include <Draw/iml_header.h>

2.- in the file “main .cpp” (obviously, this it the “main” .cpp file):
#define IMAGECLASS Imagenes
#define IMAGEFILE <prueba_OpenGL3/images.iml>
#include <Draw/iml_source.h>

3.- in the file “OpenGLExample.h” (this is a .h for class definition):
#define IMAGECLASS Imagenes
#define IMAGEFILE <prueba_OpenGL3/images.iml>
#include <Draw/iml_header.h>

4.- in the file “OpenGLExample.cpp”:
#define IMAGECLASS Imagenes
#define IMAGEFILE <prueba_OpenGL3/images.iml>
#include <Draw/iml_source.h>


To mention: there is an OpenGLExample object defined in the Prueba_OpenGL3.h file. Hence, I have included:
#include "OpenglExample.h"


There is one images.iml file, in which I would like to store all the images.

But this arrangement does not work.

Why?

Cheers,

Javier
 
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 22:12:35 CEST 2025

Total time taken to generate the page: 0.04993 seconds