CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    92

    Communicating with serial port

    I would like to get access to the port on my computer. I am writing an app that must communicate with a piece of equipment that is connected to the serial port.


  2. #2
    Join Date
    Apr 1999
    Location
    Madrid (Spain)
    Posts
    46

    Re: Communicating with serial port

    Hi:
    Perhaps you can try it with the MSComm32.ocx.
    This control (MSComm32.ocx), has properties, methods and events that you can use for working with the serial port after insert the ocx control in your application.

    I hope that this text can help you.

    Bye....



  3. #3
    Guest

    Re: Communicating with serial port

    It's a cinch.
    You should just use CreateFile function to open serial port, then ReadFile and
    WriteFile to read and write to port. For details refere to help.
    There are examples of doing this in MSDN library. It will be useful to get through them.


  4. #4
    Join Date
    May 1999
    Posts
    92

    Re: Communicating with serial port

    I would like to know if you have a sample that I can look at of how to connect to and read/write to the com1 serial port?


  5. #5
    Join Date
    Apr 1999
    Posts
    21

    Re: Communicating with serial port

    Hi there, take a look to this article, I'm pretty sure it'll help you.
    Also it has a sample application.
    http://www.microsoft.com/Win32Dev/BASE/SERIAL.HTM

    Fabian


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

Featured