Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointer/handle Pin
brianwelsch12-Sep-02 4:32
brianwelsch12-Sep-02 4:32 
GeneralRe: pointer/handle Pin
jhwurmbach12-Sep-02 4:13
jhwurmbach12-Sep-02 4:13 
GeneralafxDump Pin
Jawache12-Sep-02 3:26
Jawache12-Sep-02 3:26 
GeneralRe: afxDump Pin
Tomasz Sowinski12-Sep-02 3:50
Tomasz Sowinski12-Sep-02 3:50 
GeneralRe: afxDump Pin
Jawache12-Sep-02 4:11
Jawache12-Sep-02 4:11 
GeneralLocal machine ip address Pin
Anonymous12-Sep-02 2:24
Anonymous12-Sep-02 2:24 
GeneralRe: Local machine ip address Pin
JohnnyG12-Sep-02 2:30
JohnnyG12-Sep-02 2:30 
GeneralRe: Local machine ip address Pin
lucy12-Sep-02 5:43
lucy12-Sep-02 5:43 
// print out local host IP address
char name[256] = "";
int nRet = gethostname(name, sizeof(name));
if ( nRet == SOCKET_ERROR )
    MessageBox("gethostname() failed");
else
{
    struct hostent * host = gethostbyname(name);
    if ( host == NULL )
        MessageBox("gethostbyname() failed");
    else
    {
        struct in_addr addr;
        memcpy(&addr, host->h_addr_list[0], sizeof(addr));
        CString m_strHost;
        m_strHost.Format( "%s", inet_ntoa(addr));
        // do whatever you want to do with the obtained IP address
    }
}

GeneralScripting for Applications Pin
Ciufudean Sorin12-Sep-02 2:16
Ciufudean Sorin12-Sep-02 2:16 
QuestionHow to check if field value is NULL? Pin
anju12-Sep-02 1:53
anju12-Sep-02 1:53 
AnswerRe: How to check if field value is NULL? Pin
Imran Farooqui12-Sep-02 2:12
Imran Farooqui12-Sep-02 2:12 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:39
anju12-Sep-02 18:39 
GeneralRe: How to check if field value is NULL? Pin
Imran Farooqui12-Sep-02 19:06
Imran Farooqui12-Sep-02 19:06 
AnswerRe: How to check if field value is NULL? Pin
Rama Krishna Vavilala12-Sep-02 2:09
Rama Krishna Vavilala12-Sep-02 2:09 
AnswerRe: How to check if field value is NULL? Pin
[James Pullicino]12-Sep-02 2:36
[James Pullicino]12-Sep-02 2:36 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:44
anju12-Sep-02 18:44 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:51
anju12-Sep-02 18:51 
GeneralMFC and old functions Pin
Tolias12-Sep-02 1:38
Tolias12-Sep-02 1:38 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 1:42
Tomasz Sowinski12-Sep-02 1:42 
GeneralRe: MFC and old functions Pin
Anonymous12-Sep-02 1:52
Anonymous12-Sep-02 1:52 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 1:54
Tomasz Sowinski12-Sep-02 1:54 
GeneralRe: MFC and old functions Pin
Tolias12-Sep-02 1:59
Tolias12-Sep-02 1:59 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 2:03
Tomasz Sowinski12-Sep-02 2:03 
GeneralRe: MFC and old functions Pin
Michael P Butler12-Sep-02 1:44
Michael P Butler12-Sep-02 1:44 
GeneralCompiler directives Pin
Ruca12-Sep-02 1:20
Ruca12-Sep-02 1:20 

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.