DCB events in cSharp


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: DCB events in cSharp

  1. #1
    Steve Jacklin Guest

    DCB events in cSharp


    I am trying to setup the event trapping in DCB in cSharp so I can use the
    serial port. Normally in C++ I would use SetCommMash and pass the file handle
    along with one of the following enumerated values:
    EV_BREAK
    EV_CTS
    EV_DSR
    EV_ERR
    EV_RING
    EV_RLSD
    EV_RXCHAR
    EV_RXFLAG
    EV_TXEMPTY

    I've tried passing these in cSharp and get the an unknown variable error.
    To what values/bits do the above events correspond to.

    Also is there a way of using file streams to access the serial port.

    Cheers
    Steve

  2. #2
    Eric Gunnerson Guest

    Re: DCB events in cSharp

    If you do a text search in the Win32 include files, you'll find them. In
    this case they're in winbase.h

    --
    Visit the C# product team at http://www.gotdotnet.com/team/csharp

    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Steve Jacklin" <SAJacklin@iee.org.uk> wrote in message
    news:3cd122cd$1@10.1.10.29...
    >
    > I am trying to setup the event trapping in DCB in cSharp so I can use the
    > serial port. Normally in C++ I would use SetCommMash and pass the file

    handle
    > along with one of the following enumerated values:
    > EV_BREAK
    > EV_CTS
    > EV_DSR
    > EV_ERR
    > EV_RING
    > EV_RLSD
    > EV_RXCHAR
    > EV_RXFLAG
    > EV_TXEMPTY
    >
    > I've tried passing these in cSharp and get the an unknown variable error.
    > To what values/bits do the above events correspond to.
    >
    > Also is there a way of using file streams to access the serial port.
    >
    > Cheers
    > Steve




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center