Thread: IP Address Macros

  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: [email protected]

    ---------------------------------
    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, 01:26 AM