April 23rd, 2009, 03:27 PM
Join Date: Apr 2009
Time spent in forums: 35 m 35 sec
Reputation Power: 0
PIC to USB visual C++ Help ° ° °
I made a PIC based USB interface, I have connected one pushbutton to the PIC and when I push it, a counter is incremented.
I did a visual C++ interface with a Form and a Label to display this counter.
The thing is, the only way y can see the numbers in the counter are incremented is clicking the mouse as an event handler. Each time I click the mouse, the loop starts again.
Well , I would like to omit clicking the mouse and increment the counter just with the push button from the PIC.
I delete the event click mouse routine and nothing happens.
I have tested a lot of combinations but the visual c++ program , stays still (I dont know where)
waiting for an event, just displaying the number one.
The loop never continue, If I stop and start again my program , Label displays number 0 if pushbutton is open and 1 if it is close, so the programs works ° ° ° °.
Please I need Help ° °
I really appreciate any.