From: Rob on
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
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.