How to get IP adress?
-
HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..
birajendu CyberG India Delhi India
-
HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..
birajendu CyberG India Delhi India
birajendu wrote:
How can i get IP adress of my system thru a VC++ application,
Use
gethostbyname
orgetaddrinfo
.
Nibu thomas A Developer Programming tips[^] My site[^]
-
HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..
birajendu CyberG India Delhi India
use IPM_GETADDRESS Message Retrieves the address values for all four fields in the IP address control. Syntax To send this message, call the SendMessage function as follows. lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) IPM_GETADDRESS, // message ID (WPARAM) wParam, // = 0; not used, must be zero (LPARAM) lParam // = (LPARAM) (LPDWORD) pdwAddr; );