Original Post
Hi, cheers for looking at this
I have been using the andypike.com tutorials for directX and am having trouble converting lesson 8 to work as I want it to.
http://www.andypike.com/tutorials/DirectX8/008.asp
I want the variables:
HWND hWnd
HINSTANCE hInstance
to work in a global file called globals.h, but no matter what I do, I can''t seem to get it to work. Every method I have tried usually results in a compiler error saying it has already been included in the Main.obj file....
Also: I have stripped out all the functionality for the cuboid, as I don''t want it in my program.
I have tried passing variables, using pointers etc... but can''t find a way round this and it has been puzzling me for some time. Can anyone suggest what I might do to take these declarations for these variables out of the Terrain and game files and put them into the globals.h file ?
Cheers
Stentsoft