Click here to Skip to main content
15,880,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to add the number to the shortcut in the desktop of the application. Pin
jeron12-Dec-13 6:46
jeron12-Dec-13 6:46 
Questionhow to get ip address of a host Pin
Member 104386231-Dec-13 21:26
Member 104386231-Dec-13 21:26 
QuestionRe: how to get ip address of a host Pin
Richard MacCutchan1-Dec-13 23:42
mveRichard MacCutchan1-Dec-13 23:42 
AnswerRe: how to get ip address of a host Pin
Member 104386232-Dec-13 0:04
Member 104386232-Dec-13 0:04 
GeneralRe: how to get ip address of a host Pin
Richard MacCutchan2-Dec-13 0:30
mveRichard MacCutchan2-Dec-13 0:30 
GeneralRe: how to get ip address of a host Pin
ahmad_ali2-Dec-13 22:54
ahmad_ali2-Dec-13 22:54 
GeneralRe: how to get ip address of a host Pin
Member 104386234-Dec-13 16:39
Member 104386234-Dec-13 16:39 
AnswerRe: how to get ip address of a host Pin
arishri3-Dec-13 3:48
arishri3-Dec-13 3:48 
C#
char cNamearr[255];
    gethostname(cNamearr, 255);
    hostent* hp = gethostbyname(cNamearr);

    _sockaddr.sin_addr.s_addr   = _nAdapterIp;//inet_addr((const char*)_ucIpCharArr);
    _sockaddr.sin_addr.S_un.S_un_b.s_b1 = hp->h_addr_list[0][0];
    _sockaddr.sin_addr.S_un.S_un_b.s_b2 = hp->h_addr_list[0][1];
    _sockaddr.sin_addr.S_un.S_un_b.s_b3 = hp->h_addr_list[0][2];
    _sockaddr.sin_addr.S_un.S_un_b.s_b4 = hp->h_addr_list[0][3];

QuestionVisual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 8:13
Anthony Appleyard30-Nov-13 8:13 
AnswerRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 10:57
professionalRichard Andrew x6430-Nov-13 10:57 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 11:38
Anthony Appleyard30-Nov-13 11:38 
AnswerRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 11:41
professionalRichard Andrew x6430-Nov-13 11:41 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 11:53
Anthony Appleyard30-Nov-13 11:53 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 12:47
professionalRichard Andrew x6430-Nov-13 12:47 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 11:44
professionalRichard Andrew x6430-Nov-13 11:44 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 12:15
Anthony Appleyard30-Nov-13 12:15 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard30-Nov-13 19:37
Anthony Appleyard30-Nov-13 19:37 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan30-Nov-13 21:29
mveRichard MacCutchan30-Nov-13 21:29 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard30-Nov-13 23:58
Anthony Appleyard30-Nov-13 23:58 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 1:52
Anthony Appleyard1-Dec-13 1:52 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan1-Dec-13 2:56
mveRichard MacCutchan1-Dec-13 2:56 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 3:26
Anthony Appleyard1-Dec-13 3:26 
AnswerRe: Visual C++ 2008 mis-compiling Pin
jschell2-Dec-13 10:03
jschell2-Dec-13 10:03 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard2-Dec-13 11:14
Anthony Appleyard2-Dec-13 11:14 
GeneralRe: Visual C++ 2008 mis-compiling Pin
ahmad_ali2-Dec-13 23:36
ahmad_ali2-Dec-13 23:36 

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.