handles vs pointers

This is a discussion on handles vs pointers within the C++ Programming forums, part of the General Programming Boards category; What is the difference between a handle and a pointer. I guess I always that that they were the same ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    170

    handles vs pointers

    What is the difference between a handle and a pointer. I guess I always that that they were the same thing. But lately I have come to realize that they are not the same thing, at least not interchangable.

    Is there some doc on this, or can someone please explain this to me?
    Best Regards,

    Bonkey

  2. #2
    btq
    btq is offline
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    int *ptr <-- pointer to int
    int **ptr <--- pointer to pointer to int (handle)

    so they are quite different...
    guess that's it

    /btq
    ...viewlexx - julie lexx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  2. Replies: 4
    Last Post: 12-10-2006, 06:08 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 12:18 PM

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