Have you done this?
http://www.burninghands.net/2006/04/...h-directx-sdk/
Once I did everything worked fine for me :3