That's the only thing I can think of that would be messing up the signal when I connect the two pins (CCP1, pin 17 and INTB0, pin 40). Any suggestions?
RB0/INT0 is PIN 33.... PIN40 is RB7 wich you set as output, this short your signal to ground.