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. Visual Studio unmanaged C++ TCP/IP client-server examples

Visual Studio unmanaged C++ TCP/IP client-server examples

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocsharpsysadmin
9 Posts 4 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.
  • S Offline
    S Offline
    Stevo Z
    wrote on last edited by
    #1

    Hi Guys, I'm building a simple TCP/IP client/server application and can't find any examples that I could run in Visual Studio IDE. Everything seems to be MFC and it's not compiling under Visual Studio 2010 Express C++ for some reason. I'm not very skilled in the C++ area so please be patient with me. Something that compiles and runs out of the box please. Regards, Stevo

    zilo

    L N M 3 Replies Last reply
    0
    • S Stevo Z

      Hi Guys, I'm building a simple TCP/IP client/server application and can't find any examples that I could run in Visual Studio IDE. Everything seems to be MFC and it's not compiling under Visual Studio 2010 Express C++ for some reason. I'm not very skilled in the C++ area so please be patient with me. Something that compiles and runs out of the box please. Regards, Stevo

      zilo

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try a Google search for "socket samples", and you should find something that works. Also you cannot compile MFC applications with Express Edition as it does not contain the MFC libraries; you have to pay for them.

      It's time for a new signature.

      L 1 Reply Last reply
      0
      • L Lost User

        Try a Google search for "socket samples", and you should find something that works. Also you cannot compile MFC applications with Express Edition as it does not contain the MFC libraries; you have to pay for them.

        It's time for a new signature.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Richard MacCutchan wrote:

        Also you cannot compile MFC applications with Express Edition

        Strange, google says exactly the opposite. :(

        Life is a stage and we are all actors!

        L 1 Reply Last reply
        0
        • S Stevo Z

          Hi Guys, I'm building a simple TCP/IP client/server application and can't find any examples that I could run in Visual Studio IDE. Everything seems to be MFC and it's not compiling under Visual Studio 2010 Express C++ for some reason. I'm not very skilled in the C++ area so please be patient with me. Something that compiles and runs out of the box please. Regards, Stevo

          zilo

          N Offline
          N Offline
          norish
          wrote on last edited by
          #4

          see http://msdn.microsoft.com/en-gb/library/hs24szh9.aspx[^] The express edition dose not include MFC.

          S 1 Reply Last reply
          0
          • L Lost User

            Richard MacCutchan wrote:

            Also you cannot compile MFC applications with Express Edition

            Strange, google says exactly the opposite. :(

            Life is a stage and we are all actors!

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Yes, a bad choice of words on my part. I meant that the Express Edition does not include MFC by default, and thus will not be able to build an MFC project, unless you buy MFC and install it.

            It's time for a new signature.

            S 1 Reply Last reply
            0
            • S Stevo Z

              Hi Guys, I'm building a simple TCP/IP client/server application and can't find any examples that I could run in Visual Studio IDE. Everything seems to be MFC and it's not compiling under Visual Studio 2010 Express C++ for some reason. I'm not very skilled in the C++ area so please be patient with me. Something that compiles and runs out of the box please. Regards, Stevo

              zilo

              M Offline
              M Offline
              Moak
              wrote on last edited by
              #6

              Have a look at Beej's guide to networking programming[^], there are client/server examples in chapter 6. Another starting point is the Winsock Programmer's FAQ[^], it has examples in section 6 (with or without MFC). Alternatively use a socket class such as Alhem, Boost, SharkEngine, QT, and many others... You need to decide if you go the low-level route or take an existing socket class. First teaches you the networking basics, later makes you productive right away. Hope this helps, happy coding! :) /M

              Chat in Europe :java: Now with 24% more Twitter

              S 1 Reply Last reply
              0
              • N norish

                see http://msdn.microsoft.com/en-gb/library/hs24szh9.aspx[^] The express edition dose not include MFC.

                S Offline
                S Offline
                Stevo Z
                wrote on last edited by
                #7

                Thanks a lot to all reponses! In the meantime, I've managed to make Practical C++ Sockets[^] work with only little tweaking and my poor knowledge of unmanaged C++ world

                zilo

                1 Reply Last reply
                0
                • M Moak

                  Have a look at Beej's guide to networking programming[^], there are client/server examples in chapter 6. Another starting point is the Winsock Programmer's FAQ[^], it has examples in section 6 (with or without MFC). Alternatively use a socket class such as Alhem, Boost, SharkEngine, QT, and many others... You need to decide if you go the low-level route or take an existing socket class. First teaches you the networking basics, later makes you productive right away. Hope this helps, happy coding! :) /M

                  Chat in Europe :java: Now with 24% more Twitter

                  S Offline
                  S Offline
                  Stevo Z
                  wrote on last edited by
                  #8

                  Thanks Moak for such an exhaustive answer, currently I've managed to make Practical C++ Sockets[^] work, that will be hopefully enough for the moment. :thumbsup:

                  zilo

                  1 Reply Last reply
                  0
                  • L Lost User

                    Yes, a bad choice of words on my part. I meant that the Express Edition does not include MFC by default, and thus will not be able to build an MFC project, unless you buy MFC and install it.

                    It's time for a new signature.

                    S Offline
                    S Offline
                    Stevo Z
                    wrote on last edited by
                    #9

                    Why can't everything be in C# ;P :laugh:

                    zilo

                    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