Hi,
Thank you for posting here.
>>Use USB Communication to write and read a byte to a PIC microcontroller in C++ visual studio 2019
I suggest you could refer to the link:
https://stackoverflow.com/questions/2823539/c-usb-programming
Our forum is discussing about Visual C++ IDE, since your issue contains USB Communication, PIC , it is likely that it is beyond our support. so we suggest you could open a new thread in
stack overflow with c++, USB, PIC tag for better support.
Best Regards,
Jeanine Zhang