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. How to use the IP Control

How to use the IP Control

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 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
    Snyp
    wrote on last edited by
    #1

    Anyone know how to use the ip control?? Maybe get the current machine's ip as an example... I would appreciate it. :confused::):confused: Universal Project

    D B 2 Replies Last reply
    0
    • S Snyp

      Anyone know how to use the ip control?? Maybe get the current machine's ip as an example... I would appreciate it. :confused::):confused: Universal Project

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Getting a machine's IP address and using the IP control are mutually exclusive things. gethostname(); gethostbyname(); CIPAddressCtrl::SetAddress(); are what you need to look at.

      S 1 Reply Last reply
      0
      • D David Crow

        Getting a machine's IP address and using the IP control are mutually exclusive things. gethostname(); gethostbyname(); CIPAddressCtrl::SetAddress(); are what you need to look at.

        S Offline
        S Offline
        Snyp
        wrote on last edited by
        #3

        Let's pretend that you are talking to somebody that does not know anything about the IP Control. Examples are really nice things you know. :rolleyes: Universal Project

        D 1 Reply Last reply
        0
        • S Snyp

          Let's pretend that you are talking to somebody that does not know anything about the IP Control. Examples are really nice things you know. :rolleyes: Universal Project

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          And they are plentiful! http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=cipaddressctrl&btnG=Google+Search

          1 Reply Last reply
          0
          • S Snyp

            Anyone know how to use the ip control?? Maybe get the current machine's ip as an example... I would appreciate it. :confused::):confused: Universal Project

            B Offline
            B Offline
            Babayan Hovhannes
            wrote on last edited by
            #5
            1. DWORD addr; ((CIPAddressCtrl*)GetDlgItem(IDC_IPIDDRESS1))->GetAddress(addr); 2) BYTE b1,b2,b3,b4; ((CIPAddressCtrl*)GetDlgItem(IDC_IPIDDRESS1))->GetAddress(b1,b2,b3,b4); If address is 212.176.73.161, b1=212, b2=176, b3=73, b4=161. yiy
            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