This site is no longer active and is available for archival purposes only. Registration and login is disabled.

ReadFile


ReadFile

Postby Guest » Mar 13, 2003 @ 12:45pm

Guest
 


Postby refractor » Mar 13, 2003 @ 12:54pm

Here we go again... (there was a thread here recently about reading from the serial port).

You're telling it to only read one byte:

ReadFile (m_hCom, Byte, 1, &dwBytesTransferred, 0);

and dwBytesTransferred is filled for each read - it's not cumulative, so you're making an infinite loop...

(dwBytesTransferred will always be one because you're only asking for one).

Addendum:
http://forums.pocketmatrix.com/viewtopic.php?t=10086
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron