PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: dacarle on June 07, 2005, 04:55:26 PM

Title: IP control question
Post by: dacarle on June 07, 2005, 04:55:26 PM
Anyone know how to both set a value and get a value from this control?

All help appreciated.

-David
Title: IP control question
Post by: Roger Garstang on June 07, 2005, 11:42:39 PM
Paul uses this when he sets the address to the default selected in the properties:

SendMessage hWndControl, %IPM_SETADDRESS, 0, MAKEIPADDRESS(255,255,255,255)

%IPM_GETADDRESS would get the address.  They all use and return DWORD values...thus why MAKEIPADDRESS is used.

Lance posted some helpful code on converting the DWORD values to IP values in a post on getting the IP address of a TCP connection sometime back over at PB.  It involved using a BYTE Pointer and pointing it at the DWORD then Using$("#_.#_.#_.#", @b, @b[1], @b[2], @b[3])
Title: IP control question
Post by: dacarle on June 08, 2005, 08:37:02 AM
Roger-

Thanks.  I appreciated the reply.  Will implement today.

Regards.

-David