安装sdk,然后在vs2008中的tools->options->project and solutions->vc++ directory的include file中添加include目录,
library files中添加lib目录;在工程的属性->linker->input->additional dependencies添加ddraw.lib dxguid.lib;
在文件中包含<ddraw.h>.