look at those links
http://rentron.com/PicBasic1.htm
http://rentron.com/remote.htm
http://www.winpicprog.co.uk/pic_tutorial5.htm
Enjoy and good luck!