How to use the IP Control
-
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
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. -
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. -
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
And they are plentiful! http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=cipaddressctrl&btnG=Google+Search
-
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
- 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