I get lots of compile errors about things like "LPDIRECTDRAWSURFACE2"!

Description

I get lots of compile errors about things like "LPDIRECTDRAWSURFACE2"!
You need to tell your compiler how to find the DirectX include files and libraries: put the DirectX SDK /include and /lib directories in the compiler/linker path. Alternatively, if you don't want to modify any configuration stuff, you can simply copy the files from the DirectX SDK /include and /lib directories to the corresponding ones for your compiler.