Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I want to use windows pre-defined method responsible for messaging about receipt of USB data?

By "pre-defined method", I mean the event which I want to link to USB data report.
While USB data report come, windows will notify my application program to trigger an event handler to receive data from USB.
Of course, we can start a thread to monitor the USB data report event, but I don't like that way.

can anyone contribute an idea about it?
Posted
Updated 27-Mar-10 1:00am
v3

Thanks, RichardM1.
It doesn't matter HID USB device or not. For my case, it is generic USB device, Microchip PIC18F46j50. I wrote windows program in VC++, 6.0 that can read data from USB or write data to USB. it is no problem. But I don't satisfy my program because there is no 'event driven' style. When the data coming from USB there is no event to notice my program.
That is why I want to use 'pre-defined method' to build my own event handler.
 
Share this answer
 
Comments
pespas 11-Jul-10 6:06am    
Hi Panamk,
i wonder if you can help me.

as you saied in the article :"It doesn't matter HID USB device or not. For my case, it is generic USB device, Microchip PIC18F46j50. I wrote windows program in VC++, 6.0 that can read data from USB or write data to USB. it is no problem. "


I am having a small problem
As you can see I'm working on the PIC18F14K50, and i'm tring to establish a connection between the PC and the USB,and to read data from USB or write data to USB.

(FYI: i am using MPLAB, and i've done some interaction with the Microchip ,i.e lighting the LEDs)

i hope you can help me.

thank you in advance.
Look into system hooks.
Do you know if you are looking for a HID USB device, or are you interested in getting events fired when you load or write data using a USB drive?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900