Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing classes into threads Pin
Michael Dunn28-Apr-04 14:05
sitebuilderMichael Dunn28-Apr-04 14:05 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar28-Apr-04 19:05
Jitendra gangwar28-Apr-04 19:05 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 22:58
roadragedave28-Apr-04 22:58 
GeneralRe: Passing classes into threads Pin
Paul Ranson28-Apr-04 23:36
Paul Ranson28-Apr-04 23:36 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar29-Apr-04 1:33
Jitendra gangwar29-Apr-04 1:33 
Questionhow can i dynamically get my machine ip address ? Pin
Marco M.28-Apr-04 6:17
Marco M.28-Apr-04 6:17 
AnswerRe: how can i dynamically get my machine ip address ? Pin
David Crow28-Apr-04 7:03
David Crow28-Apr-04 7:03 
AnswerRe: how can i dynamically get my machine ip address ? Pin
toxcct28-Apr-04 7:09
toxcct28-Apr-04 7:09 
you can list all your IP Addresses by doing this :
<font style="color:blue;">struct</font> hostent* infohost;
<font style="color:blue;">char</font> HostName[256];
<font style="color:blue;">char</font>** addrs;
<font style="color:blue;">char</font>* Host;
 
gethostname(HostName, 255);
Host = HostName;
infohost = gethostbyname(HostName);
addrs = infohote -> h_addr_list;
<font style="color:blue;">while</font> (*addrs) {
    printf("IP : %s\n", inet_ntoa( *(struct in_addr *)* addrs));
    addrs++;
}

don't forget to check errors.
Your main IP Address while being in a TCP network is in general the first, but not necessarily...



TOXCCT >>> GEII power


AnswerRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 8:16
RNEELY28-Apr-04 8:16 
GeneralRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 9:09
RNEELY28-Apr-04 9:09 
QuestionFrequent open/close registry key? Pin
Gibson_66628-Apr-04 5:48
Gibson_66628-Apr-04 5:48 
AnswerRe: Frequent open/close registry key? Pin
David Crow28-Apr-04 7:10
David Crow28-Apr-04 7:10 
GeneralWeb Browser Pin
Moschous Manos28-Apr-04 5:28
Moschous Manos28-Apr-04 5:28 
GeneralMFC application with COM objects Pin
Brian van der Beek28-Apr-04 5:01
Brian van der Beek28-Apr-04 5:01 
GeneralRe: uint32 printing problem Pin
Trollslayer28-Apr-04 5:00
mentorTrollslayer28-Apr-04 5:00 
GeneralRe: uint32 printing problem Pin
roadragedave28-Apr-04 6:14
roadragedave28-Apr-04 6:14 
GeneralRe: uint32 printing problem Pin
David Crow28-Apr-04 7:22
David Crow28-Apr-04 7:22 
QuestionPlugin for VC++ that distributes the compiling across the network? Pin
Gywox28-Apr-04 4:39
Gywox28-Apr-04 4:39 
GeneralCMDIChildWnd maximized Pin
alex.barylski28-Apr-04 4:21
alex.barylski28-Apr-04 4:21 
GeneralRe: CMDIChildWnd maximized Pin
Ryan Binns28-Apr-04 18:06
Ryan Binns28-Apr-04 18:06 
GeneralPosting messages in a SDI app Pin
Trollslayer28-Apr-04 4:15
mentorTrollslayer28-Apr-04 4:15 
GeneralRe: Posting messages in a SDI app Pin
Anonymous28-Apr-04 4:21
Anonymous28-Apr-04 4:21 
GeneralRe: Posting messages in a SDI app Pin
Trollslayer28-Apr-04 4:57
mentorTrollslayer28-Apr-04 4:57 
GeneralRe: Posting messages in a SDI app Pin
jmkhael28-Apr-04 5:02
jmkhael28-Apr-04 5:02 
GeneralModifyStyle Pin
Anthony988728-Apr-04 4:10
Anthony988728-Apr-04 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.