Announcement

Collapse
No announcement yet.

Comm Question

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

  • Comm Question

    I'm sure someone has posted this question..

    I want to trigger a comm event as an Event, ie, the phone rings I have something like this:
    Code:
         Case %ID_COMMRING
              AnswerPhone

    Can this be done as it can with TCP??
    Perhaps if I use the same sample from the TCP file server that's floating about (Rserver?)..


    Scott

    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    use the setcommmask() and then the waitcommevent() api. you first need to the o/s handle of the tcp port by using fileattr(hcomm&,-2).

    see http://www.powerbasic.com/support/pb...ad.php?t=14736

    btw, just to be clear - this should work fine, but intermixing api and native comm code canniot be guaranteed to work perfectly in all situations, although i've not heard anyone report any problems with the technique.


    ------------------
    lance
    powerbasic support
    mailto:[email protected][email protected]</a>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X