Read TDL from http://tdlexperts.com/index.php?threads/tdl-reference-manual.26/ and follow Free Source Codes..