Results 1 to 3 of 3

Thread: How to read a serial port with API

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    Ecuador
    Posts
    3

    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

  2. #2
    jenk
    Guest

    PORT

    Hi, try:
    www.vbcode.com
    they had a snippet for this..

    Cheers

  3. #3
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width