Original Post
hi,
I''m working through Lamothe''s "Tricks of the Window ..." and
was surprised to find his examples not (barely) to be divided over several source files.
Certainly his Outpost game is close to 5000 lines all in one file ... .
I would create one ever-to-be-used-again mainfile to setup my DX window and write game logic in separate files.
Is it sufficient to just write much-used vars like LPDIRECTDRAW7, LPDIRECTDRAWSURFACE7, ... as externs or are there better ways (reasons to stick with as little files as possible) ?
Geert