Click here to Skip to main content
16,012,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CRichEditCtrl and Dialog App Pin
Matt Gullett28-Jan-02 15:43
Matt Gullett28-Jan-02 15:43 
GeneralRe: CRichEditCtrl and Dialog App Pin
Matt Newman28-Jan-02 16:28
Matt Newman28-Jan-02 16:28 
GeneralRe: CRichEditCtrl and Dialog App Pin
Mazdak28-Jan-02 22:47
Mazdak28-Jan-02 22:47 
GeneralRe: CRichEditCtrl and Dialog App Pin
Mazdak28-Jan-02 22:52
Mazdak28-Jan-02 22:52 
GeneralRe: CRichEditCtrl and Dialog App Pin
Braulio Dez29-Jan-02 0:24
Braulio Dez29-Jan-02 0:24 
GeneralRe: CRichEditCtrl and Dialog App Pin
Mazdak29-Jan-02 18:22
Mazdak29-Jan-02 18:22 
GeneralParsing IP Addresses and Domain Names Pin
Jean Louis28-Jan-02 15:15
Jean Louis28-Jan-02 15:15 
GeneralRe: Parsing IP Addresses and Domain Names Pin
markkuk28-Jan-02 19:41
markkuk28-Jan-02 19:41 
Here's a piece of code I used some time ago:
/*
 * Address resolution
 */

// First, try for a numeric IP address
ULONG uRemAddr = inet_addr(lpszHostAddress);

if (uRemAddr == INADDR_NONE) {
    // HostAddress isn't a dotted IP, so resolve it through DNS
    hostent* pHE = gethostbyname(lpszHostAddress);
    if (pHE == 0) {
    m_lastError = WSAGetLastError();
        return FALSE;
    }
    uRemAddr = *((ULONG*)pHE->h_addr_list[0]);
}
The address is in lpszHostAddress, at the end the IP address (as a 32bit unsigned number) is in uRemAddr. You can use the getnameinfo() function to get the host name from the IP address.
GeneralRe: Parsing IP Addresses and Domain Names Pin
Jean Louis29-Jan-02 6:50
Jean Louis29-Jan-02 6:50 
Questionimplement button on docking Dialogbar? Pin
28-Jan-02 13:45
suss28-Jan-02 13:45 
AnswerRe: implement button on docking Dialogbar? Pin
Fredrik Skog28-Jan-02 20:16
Fredrik Skog28-Jan-02 20:16 
GeneralThanks Pin
29-Jan-02 3:23
suss29-Jan-02 3:23 
Generalnmake problem Pin
28-Jan-02 11:48
suss28-Jan-02 11:48 
GeneralRe: nmake problem Pin
Derek Waters28-Jan-02 13:17
Derek Waters28-Jan-02 13:17 
GeneralActiveX as a parent of modeless dialog Pin
Ruslan28-Jan-02 11:19
Ruslan28-Jan-02 11:19 
GeneralCFile accessDenied Pin
HomeNuke28-Jan-02 11:12
HomeNuke28-Jan-02 11:12 
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 11:19
professionalPhilip Patrick28-Jan-02 11:19 
GeneralRe: CFile accessDenied Pin
HomeNuke28-Jan-02 11:28
HomeNuke28-Jan-02 11:28 
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 11:45
professionalPhilip Patrick28-Jan-02 11:45 
GeneralRe: CFile accessDenied Pin
HomeNuke28-Jan-02 12:10
HomeNuke28-Jan-02 12:10 
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 12:24
professionalPhilip Patrick28-Jan-02 12:24 
Generaladding bitmaps to dialogbar buttons Pin
murd28-Jan-02 11:03
murd28-Jan-02 11:03 
GeneralRe: adding bitmaps to dialogbar buttons Pin
Fredrik Skog28-Jan-02 20:04
Fredrik Skog28-Jan-02 20:04 
GeneralNon-overlapping child windows in a non-SDI/MDI application.. Pin
28-Jan-02 10:38
suss28-Jan-02 10:38 
GeneralHandling image load in IE... Pin
Philip Patrick28-Jan-02 10:03
professionalPhilip Patrick28-Jan-02 10:03 

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.