Here is my first DirectX program (source + exe 60kb):
http://igrodel.ru/api/1_d3d_textures.zip (60kb)