U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » multiple classes include-problem
Re: multiple classes include-problem [message #14435 is a reply to message #14433] Tue, 26 February 2008 16:39 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Maybe I wasn't clear enough, I believe the correct solution is:

In .h file:
#define IMAGECLASS SomeImg
#define IMAGEFILE <SomeImg/SomeImg.iml>
#include <Draw/iml_header.h>


In ONE .cpp file:
#define IMAGECLASS SomeImg
#define IMAGEFILE <SomeImg/SomeImg.iml>
#include <Draw/iml_source.h>


The way the image stuff works is that the macros create a class with functions taht return the image, so naturally it is best to have the header and source for this class in .h/.cpp files.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Template problem
Next Topic: Optimized memcmp for x86
Goto Forum:
  


Current Time: Sun Jun 21 15:44:44 GMT+2 2026

Total time taken to generate the page: 0.00814 seconds