D
Daniel Moree
I'm using MS VC++ 6.0
I'm working on a big project. I've currently have several files for this
project.
Here's the problem.
I have one header file phead.h
I have two code files main.cpp and gameloop.cpp
phead.h has all my core declarations in it like my main globals.
main.cpp has all my window initilization functions and my winproc loop.
gameloop.cpp has my main game loop, this file uses phead.h declarations and
hold HWND and WPARAM for keyboard control and window contols.
When I compile and run, sometimes it will compile and run fine. Then, when I
edit some of the gameloop.cpp file or the main.cpp file trying something
different, it won't compile because it says it doesn't know what HWND and
WPARAM are. I include it in gamemain.cpp and the compiler says there are
multiple statements for my gamemain.cpp functions, then i can delete the
include command and it will work, any idea on how to fix it or ideas on
project organization?
I'm working on a big project. I've currently have several files for this
project.
Here's the problem.
I have one header file phead.h
I have two code files main.cpp and gameloop.cpp
phead.h has all my core declarations in it like my main globals.
main.cpp has all my window initilization functions and my winproc loop.
gameloop.cpp has my main game loop, this file uses phead.h declarations and
hold HWND and WPARAM for keyboard control and window contols.
When I compile and run, sometimes it will compile and run fine. Then, when I
edit some of the gameloop.cpp file or the main.cpp file trying something
different, it won't compile because it says it doesn't know what HWND and
WPARAM are. I include it in gamemain.cpp and the compiler says there are
multiple statements for my gamemain.cpp functions, then i can delete the
include command and it will work, any idea on how to fix it or ideas on
project organization?