CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Handle & pointer

    What is the difference between a handle and a pointer ?

    Thanks in advance.



  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Handle & pointer

    A handle is a unique number, whereas a pointer points to a memory location. In some cases it's the same. For instance a HWND is a unique number for an application, but for the system it's a pointer to a memory block.


    Martin

  3. #3
    Guest

    Re: Handle & pointer


    A HANDLE is an index to an internal table that the operating system maintains for all executive objects. It is in that table
    that the OS can look up information about the object in question.

    A pointer just "points" to a raw block of memory.

    Dan


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured