IP Address Macros

This is a discussion on IP Address Macros within the Windows Programming forums, part of the Platform Specific Boards category; Can anybody please share a little information on the IP Address Macros. For example, what can they be used for? ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    104

    Question IP Address Macros

    Can anybody please share a little information on the IP Address Macros. For example, what can they be used for? Also, what header files are they found in and/or should be used with them? I've been told to use windows.h but I find them in the win.h header file. Most import, can anyone share a simple sample code that demonstrates how to use them?

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Arrow Here...

    The IP address is commctrl.h. Also, you have to include the .lib file, -lcomctl32. You then initialize INITCOMMONCONTROLSEX with the dwICC set to ICC_INTERNET_CLASSES, and use a regular window, like this:


    CreateWindowEx(
    0,
    WC_IPADDRESS,
    NULL,
    0, 0,
    200, 20,
    hwnd,
    NULL,
    hInst, // HINSTANCE for window
    NULL
    );


    I wanted to use this before, and when I copied code from MSDN, it said ICC_INTERNET_CLASSES was undefined. You have to have the latest version of the common controls .dll. I hope this helps!
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux raw socket programming
    By cnb in forum Networking/Device Communication
    Replies: 17
    Last Post: 11-08-2010, 08:56 AM
  2. What does this do (Windows API)?
    By EVOEx in forum Windows Programming
    Replies: 4
    Last Post: 12-19-2008, 10:48 AM
  3. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 07:17 PM
  4. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 02:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21