Introduction to Direct3D (DX7)
In this tutorial we will expand our simple window, and add some Direct3D to it. You will learn how to initialize Direct3D with the help of Direct3DX and then render a rotating colored triangle. This tutorial is only meant as an introduction to Direct3D and Direct3DX.
Read article
Download source code
Also hosted on Programmer's Heaven.