| | |
difference between pointers and handles
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
A handle is an opaque pointer.
Last edited by Hamrick; Aug 31st, 2007 at 11:07 am.
The truth does not change according to our ability to stomach it.
AFAIK the C and C++ languages don't define the term 'handle', so its use can vary according to context.
In addition to the usage as described in Hamrick's link, some texts use 'handle' to describe C++ References .. in this context, 'handle' is a synonym for 'alias' or 'nickname'.
In addition to the usage as described in Hamrick's link, some texts use 'handle' to describe C++ References .. in this context, 'handle' is a synonym for 'alias' or 'nickname'.
Last edited by Bench; Aug 31st, 2007 at 1:02 pm.
¿umop apisdn upside down? Hamrick's link is about as succenct as you can get. The why on the other hand probably will never be know. It could be deliberate, accidental or just a matter of convienence as code is being developed, modfied or upgraded. Concentrate more on the API's that provide you handles to files, memory, windows etc, and how they are used in other API's.
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
Thanks a ton Hamrick!! well the concept is somewhat now clear!!
•
•
•
•
hello everyone,
i am a rookie in C++ programming, can someone please clarify my one doubt regarding difference between handles and pointers ?? actually i am little confused about handles, can any one please clarify what exactly is a Handle and why is it used??
Read more
![]() |
Similar Threads
- Pointers (archived tutorial) (C++)
- C++ Books (C++)
- Diff. between PHP 4 and PHP 5 ? (PHP)
- substitute of sizeof operator (C++)
- Sorting arrays of pointers with function? (C)
- Pointers (Part II) (C)
- ambigious problem 2nd (C)
Other Threads in the C++ Forum
- Previous Thread: Good C++ tutorials
- Next Thread: Is this undefined behaviour?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





