Apparently you are doing an HID project ? Use the forum's search page
and search for:
ex_usb_hid.c
You will find many suggestions on how to make it work. Example:
http://www.ccsinfo.com/forum/ ...
I have 2 LEDs connected to 18F4550. I put two buttons to pc software. Each button turns on one LED while turning of the other one. I am controlling the microchip via usb. My problem is it works if I p ...