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

    Need help with "COM1"

    I had tried hard to use the "COM1".
    When I use the file open method to open a serial port like "COM1", it works . But the problem is
    I can't get both InputStream and OutputStream at the same time. I really need to read and write content to the "COM1" at the sametime.
    You know if I first open one OutputStream from "COM1" and write something then I want to receive the respond from "COM1".if I don't close the OutputStream I can't make one InputStream.
    But if I close the OutputStream then open one InputStream , yeah, I get one, but the response was lost.
    I tried to use RandomAccessFile, but I only can write, when I read , it always return -1.I just don't know why.
    And I don't want to use the JNI.

    So, anyones had recommands are welcomed here.

    This is from david dong.

  2. #2
    Guest

    Re: Need help with "COM1"

    Try using the Comm API from Sun


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