K,
Point 1 - PicBasicPro this code is not...
Point 2 - PicBasicPro <> C
Point 3 - PicBasicPro doesn't support ANY of the dsPIC series MCUs.
Point 4 - If you get the above code to compile with PicBasicPro, I'll give up programming altogether and take up underwater basket weaving as a career.
Any questions?