Hi Hans,
I could not see something wrong in the code, except that the bitrate calculation is not correct because your PIC runs at 4 MHz instead of 8 MHz but that would not be a problem since it is the same for the transmitter and the receiver.
So what is not working? Did you try to connect the output of the transmitter directly to the input of the receiver to test if that works (so without an RF module)?
Another question. This sample program assumes that the transmitter and receiver have an input to select a high or low bitrate. Since you disabled the weak pull-up in your program (your PIC does not have this on all pins) these pins are floating so it is not
sure what is selected as bitrate. It could then happen that the transmitter is using a high bitrate and the receiver a low bitrate (or the other way around or even a random behaviour) and that will not work. So my suggestion is to use pull-up resistors on
the input pin or at least connect them to ground or VCC and selecting the same bitrate on both sides.
Kind regards,
Rob