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. IPaddress control-please help me

IPaddress control-please help me

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 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.
  • P Offline
    P Offline
    prathuraj
    wrote on last edited by
    #1

    i want to check greater than 255 value in ipaddress field but when i enter value greater than 255 it automatically change to 255 at that time i cant get what i typed.so i cant check greater than 255 value.how can i do that

    A D 2 Replies Last reply
    0
    • P prathuraj

      i want to check greater than 255 value in ipaddress field but when i enter value greater than 255 it automatically change to 255 at that time i cant get what i typed.so i cant check greater than 255 value.how can i do that

      A Offline
      A Offline
      Arman S
      wrote on last edited by
      #2

      Then It wouldn't be an IPaddress :) What's your purpose of doing that?

      -- ===== Arman

      P 1 Reply Last reply
      0
      • A Arman S

        Then It wouldn't be an IPaddress :) What's your purpose of doing that?

        -- ===== Arman

        P Offline
        P Offline
        prathuraj
        wrote on last edited by
        #3

        when the user type greater then 255 i want to post a error message. In windows Local area Connection wizard display this kind of message.i want to do that like this.

        M 1 Reply Last reply
        0
        • P prathuraj

          when the user type greater then 255 i want to post a error message. In windows Local area Connection wizard display this kind of message.i want to do that like this.

          M Offline
          M Offline
          Manoj Kumar Rai
          wrote on last edited by
          #4

          Hi, The one way could be by customizing the CEdit control using mask. You create ur own IPAddress control class, in which u can handle all validations as per your requirement.

          Manoj Never Give up

          1 Reply Last reply
          0
          • P prathuraj

            i want to check greater than 255 value in ipaddress field but when i enter value greater than 255 it automatically change to 255 at that time i cant get what i typed.so i cant check greater than 255 value.how can i do that

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

            prathuraj wrote:

            when i enter value greater than 255 it automatically change to 255 at that time

            If you are using a SysIPAddress32 window class (CIPAddressCtrl if using MFC), this is done automatically.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            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