Your first stop should be @ Microchip Website and check out within their already made DSP Software library and derive your work from there. Or directly post your question on their support forum.

Here, it's Melabs PICBASIC PRO, which do not offer support for dsPIC. Sorry