I try to make simple scene with 2 rectangles but i don't get expected output:

http://www.geocities.com/srki_82/D3DError.JPG

The source code is here:

http://www.geocities.com/srki_82/D3DTut8.zip

What is wrong with code I wrote?

BTW: I have code which don't use Common Framework and that one works nice.