It should also be borne in mind that there are different compilers for the two controllers. The xc16 is used for the PIC24, while Microchip recommends the xc-DSC compiler for new projects with the dsPIC.