L
Luk Vloemans
Hey,
I'm a student working on a project to get data from a GPS onto a PDA.
This is the function I use to get data from the device:
if (ReadFile(m_ihandle, buf, 1, gotbytes, uOverlapped))
{
throw new CommPortException("Can not read from port " + cs.port);
}
The function seems to work, as the buffer always gets a new (sadly,
garbage) value. However, the gotbytes (int) remains 0, which means the
device didn't read any character at all.
Does anybody know why the ReadFile function doesn't work properly ?
Thank in advance,
Luk Vloemans
I'm a student working on a project to get data from a GPS onto a PDA.
This is the function I use to get data from the device:
if (ReadFile(m_ihandle, buf, 1, gotbytes, uOverlapped))
{
throw new CommPortException("Can not read from port " + cs.port);
}
The function seems to work, as the buffer always gets a new (sadly,
garbage) value. However, the gotbytes (int) remains 0, which means the
device didn't read any character at all.
Does anybody know why the ReadFile function doesn't work properly ?
Thank in advance,
Luk Vloemans