I advice you to have a look here:

http://www.dspguide.com/pdfbook.htm

In chapter 8 you will find the DFT