|
Prev: Linking a dll or a lib file developped in C++ using Visual Stu
Next: New release of undocumented.ntinternals.net
From: Rob on 28 Apr 2008 09:03 Hi, I have a program that writes/reads a virtual comport. Writing is ok. Reading always returns 0 bytes. (the connected device is sending stuff continuously) The read uses standard windows API, CreateFile / ReadFile. Commtimeouts are set. I tried every combination of options for the above mentioned functions. Hyperterminal & teraterm DO receive data from this port. A Hid-code-sample I have opens the port in the same way I do. Any idea's ? Greetings, Rob.
From: chris.aseltine on 28 Apr 2008 11:52
On Apr 28, 8:03 am, Rob <R...(a)discussions.microsoft.com> wrote: > I have a program that writes/reads a virtual comport. > Writing is ok. > Reading always returns 0 bytes. (the connected device is sending stuff > continuously) > > The read uses standard windows API, CreateFile / ReadFile. > Commtimeouts are set. > I tried every combination of options for the above mentioned functions. *Every* combination? I doubt it. > Hyperterminal & teraterm DO receive data from this port. > A Hid-code-sample I have opens the port in the same way I do. I would post your code that is reading the port. |