Little help for include guards if possible...

image1: http://prntscr.com/30i7z0
image2: http://prntscr.com/30i8tj

how can i prevent including windows h and color h in main?
they are included once in moviefuncdef.cpp
and i want them in main.cpp ?? what can i do?

BTW:
- i know that i can include them both in one header and then use that header...
i know thats a solution, but i want to have them included in both seperated files..
- color.h is my library (dont think that it makes problems..)
Your "what here" could literally be any string, as long as they are unique to the class-definition. If I have a class Foo, I usually just do something like

1
2
3
4
#ifndef __FOO__
#define __FOO__
...
#endif 
Last edited on
Do not use names starting with two underscores or underscore and a capytal letter. Those names are reserved to use by compiler implementation by Standard.
Really? I wasn't aware, cheers :) Though I must say this convention seems pretty common, no? I've seen it in lots of tutorials etc.
Topic archived. No new replies allowed.