IP control question

Started by dacarle, June 07, 2005, 04:55:26 PM

Previous topic - Next topic

dacarle

Anyone know how to both set a value and get a value from this control?

All help appreciated.

-David

Roger Garstang

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])

dacarle

Roger-

Thanks.  I appreciated the reply.  Will implement today.

Regards.

-David