Announcement

Collapse
No announcement yet.

TXBUFFER and TXQUE under NT 4.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TXBUFFER and TXQUE under NT 4.0

    I wrote a program using:

    COMM(#hComm, RXBUFFER)
    COMM(#hComm, TXBUFFER)
    COMM(#hComm, RXQUE)
    COMM(#hComm, TXQUE)

    The program ran fine under W95 Osr2 but lost the TX functions
    under NT 4.0. Is this expected?

    Thanks,

    ~Bob

  • #2
    I'm not sure what you mean by "lost", but in some O/S's it is not possible to set or query the transmit buffer size (ie, the underlying comm API functions do not return such information to PowerBASIC).

    COMM SEND/PRINT are "synchronous" functions, so execution continues only when the data was successfully placed in the transmit que, otherwise it waits for this to occur (or an error is encountered and returned in ERR/ERRCLEAR, etc).

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Lance,

      Thanks for the reply. The TXBUFFER and TXQUE were both '0'
      which I assume means that the data was not available. I understand
      that NT is isolated from the hardware but I was surprised that
      the RX values were available and not the TX.

      ~Bob


      ------------------

      Comment


      • #4
        see also http://www.powerbasic.com/support/pb...ead.php?t=3851

        ------------------
        tom hanlin
        powerbasic staff

        Comment

        Working...
        X