Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. com port settings

com port settings

Scheduled Pinned Locked Moved C / C++ / MFC
comdesign
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anuchelvi
    wrote on last edited by
    #1

    I need to design a dialog based application in vcpp through which i need to send and receive data through the com port. Still now,i've completed the part through which i can send and receive data using a buffer. i've not included the com port module so far. 1) In my menu options i've included all the ports, but the ports which r presently connected to the system should be enabled. 2) I've to configure the port, even if it is connected or not. 3)By choosing that particular port, i need to connect and send and receive data through it. mithila

    H 1 Reply Last reply
    0
    • A anuchelvi

      I need to design a dialog based application in vcpp through which i need to send and receive data through the com port. Still now,i've completed the part through which i can send and receive data using a buffer. i've not included the com port module so far. 1) In my menu options i've included all the ports, but the ports which r presently connected to the system should be enabled. 2) I've to configure the port, even if it is connected or not. 3)By choosing that particular port, i need to connect and send and receive data through it. mithila

      H Offline
      H Offline
      Hardy_Smith
      wrote on last edited by
      #2

      Look at http://www.codeproject.com/system/serial.asp ( CSerial ) or at the wfc, there is a serial class. or http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn\_serial.asp Good Luck, Hardy.

      A 1 Reply Last reply
      0
      • H Hardy_Smith

        Look at http://www.codeproject.com/system/serial.asp ( CSerial ) or at the wfc, there is a serial class. or http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn\_serial.asp Good Luck, Hardy.

        A Offline
        A Offline
        anuchelvi
        wrote on last edited by
        #3

        Hi, I'm using menu in my module. The ports which r present in the system should be enabled in the menu. How is it possible? mithila mithila

        H 1 Reply Last reply
        0
        • A anuchelvi

          Hi, I'm using menu in my module. The ports which r present in the system should be enabled in the menu. How is it possible? mithila mithila

          H Offline
          H Offline
          Hardy_Smith
          wrote on last edited by
          #4

          The CSerial- class has a "Open" and "Close" Method and it can be configured. So call open from your menu's message-handler to open the comport:), but take care that you write the configuration before. To close it, just call the close-Method. I think there is a example-App with CSerial. Hardy.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups