I am starting to write my first Juce app for windows first. I am dealing with USB, trying to communicate the desktop app to a microcontroller thru USB (HID so far). The thing is that, when programming in Visual Studio 2013, VS windows (forms) receive some kind of "WndProc" callback if any change in the ports happens, as USB un/connection....WM_DEVICECHANGE (devicearrival, deviceremove....)
Since Juce uses its own windows system, I can't detect this kind of behaviour...has anyone solved how to deal wiht it?
I guess I should poll the USB ports to check if any connection happens or is still there, but i don't know if it is the best way to do it.
Any idea!?....thank you very much in advance!.