Hi everybody !!!
My problem is:
I'm starting to do things in DirectX 7 and VC++ 6.0 and I was doing things about the 16 bits video problem (555, 565, RGB, GRB...) and I saw a function with macros on a post and based on that code I programmed the mine. What is getting me crazy is that I want to put in separate files and the macros on the .h file that I use on the code (where the functions to manange the video are) file and the run (where the GAME CODE only is) file. Those macros utilize a variable named BIT555 that is boolean type and define if its 555 or 565. If I put the declaration of the variable (that is utilized by a function named 16BITS()[on the code file], this one returns if its 555 or 565 on the BIT555 var and a structure that is utilized on the macros either, to see if its RGB or BGR...)
on the .h file an error ocurs "redeclaration of var on the run file..." when linking, if I put it on the code file "var not declared..." when compiling the .h file. If I move the macros to the code file "undeclared identifier..." when compiling the run file (that use the macros to get right rgb value and put then too)
I don't know what to do. Can anyone tells me , please ?
Sorry about my english, I'm brazilian...
Thanks