Click here to Skip to main content
15,563,876 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 7:46
jeron12-Dec-13 7:46 
Questionhow to get ip address of a host Pin
Member 104386231-Dec-13 22:26
Member 104386231-Dec-13 22:26 
QuestionRe: how to get ip address of a host Pin
Richard MacCutchan2-Dec-13 0:42
mveRichard MacCutchan2-Dec-13 0:42 
AnswerRe: how to get ip address of a host Pin
Member 104386232-Dec-13 1:04
Member 104386232-Dec-13 1:04 
GeneralRe: how to get ip address of a host Pin
Richard MacCutchan2-Dec-13 1:30
mveRichard MacCutchan2-Dec-13 1:30 
GeneralRe: how to get ip address of a host Pin
ahmad_ali2-Dec-13 23:54
ahmad_ali2-Dec-13 23:54 
GeneralRe: how to get ip address of a host Pin
Member 104386234-Dec-13 17:39
Member 104386234-Dec-13 17:39 
AnswerRe: how to get ip address of a host Pin
arishri3-Dec-13 4:48
arishri3-Dec-13 4: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 9:13
Anthony Appleyard30-Nov-13 9:13 
AnswerRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 11:57
professionalRichard Andrew x6430-Nov-13 11:57 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 12:38
Anthony Appleyard30-Nov-13 12:38 
AnswerRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 12:41
professionalRichard Andrew x6430-Nov-13 12:41 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 12:53
Anthony Appleyard30-Nov-13 12:53 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 13:47
professionalRichard Andrew x6430-Nov-13 13:47 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 12:44
professionalRichard Andrew x6430-Nov-13 12:44 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 13:15
Anthony Appleyard30-Nov-13 13:15 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard30-Nov-13 20:37
Anthony Appleyard30-Nov-13 20:37 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan30-Nov-13 22:29
mveRichard MacCutchan30-Nov-13 22:29 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 0:58
Anthony Appleyard1-Dec-13 0:58 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 2:52
Anthony Appleyard1-Dec-13 2:52 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan1-Dec-13 3:56
mveRichard MacCutchan1-Dec-13 3:56 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 4:26
Anthony Appleyard1-Dec-13 4:26 
AnswerRe: Visual C++ 2008 mis-compiling Pin
jschell2-Dec-13 11:03
jschell2-Dec-13 11:03 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard2-Dec-13 12:14
Anthony Appleyard2-Dec-13 12:14 
GeneralRe: Visual C++ 2008 mis-compiling Pin
ahmad_ali3-Dec-13 0:36
ahmad_ali3-Dec-13 0: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.