|
-
Nov 7th, 2001, 12:41 AM
#1
Thread Starter
New Member
How to read a serial port with API
I need to know the form to read a serial port with an API and display that information in the monitor of PC
-
Nov 7th, 2001, 05:24 PM
#2
PORT
Hi, try:
www.vbcode.com
they had a snippet for this..
Cheers
-
Nov 7th, 2001, 06:22 PM
#3
You use the CreateFile api, then use ReadFile, CloseFile.
However it's more complicated than that. You actually have to create events see this page:
http://msdn.microsoft.com/library/de...sdn_serial.asp
I know. It's C++, but it explains what you have to do, and will give you an idea of why using the MSComm control is a better choice for this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|