How to transfer 8-bits from computer to another one using C language ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahmed mansour
    New Member
    • Feb 2011
    • 3

    How to transfer 8-bits from computer to another one using C language ?

    what is the code that can be used to transfer 8-bits from computer to another computer using cable?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Depends on what the computer and the other computer both are and what OS they are running. There is no standard C way to do this.

    Comment

    • ahmed mansour
      New Member
      • Feb 2011
      • 3

      #3
      im using PCs and trying to do serial communication

      Comment

      • Oralloy
        Recognized Expert Contributor
        • Jun 2010
        • 988

        #4
        Are you using Linux command-line code, PC command-line, or Windows event-loop code?

        The approach between the first two is similar. The later is much different.

        Comment

        • ahmed mansour
          New Member
          • Feb 2011
          • 3

          #5
          im using Windows event-loop code

          Comment

          • Oralloy
            Recognized Expert Contributor
            • Jun 2010
            • 988

            #6
            Sorry for the delay, I wrote a bit for you, but then somehow closed the wrong browser window.

            Searching for "MFC serial communications" on Bing or Yahoo is a good way of finding MFC examples.

            If you're stuck using the bare Windows API for some reason, then you might want to look in this thread. There's some interesting code about half way down.

            Hopefully that gets you off the ground.

            Good Luck!

            Comment

            Working...