: : im want to communicate with a device via usb. So i tried to establish a connection and everything seemed to be fine. Finally CreateFile works and i got a valid file handle. When i call ReadFile or WriteFile i allways get an error message "wrong parameter".
: : Any idea what could be wrong?
: : (Compiler: MS Visual Studio 6.0, OS: Win2000)
: : Thanx,
: : klaus
:
: A HID device? Did you prepend the ReportID byte (usually 0x0)?
I'm not sure if its a HID; its a receiver for gps data. No, i dont prepend the reportID byte;
the code looks like this: