difference between pointers and handles

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 18
Reputation: Ashu@sym is an unknown quantity at this point 
Solved Threads: 0
Ashu@sym Ashu@sym is offline Offline
Newbie Poster

difference between pointers and handles

 
0
  #1
Aug 31st, 2007
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??
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 322
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

Re: difference between pointers and handles

 
0
  #2
Aug 31st, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 503
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Solved Threads: 51
Bench's Avatar
Bench Bench is offline Offline
Posting Pro

Re: difference between pointers and handles

 
0
  #3
Aug 31st, 2007
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'.
Last edited by Bench; Aug 31st, 2007 at 1:02 pm.
¿umop apisdn upside down?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 199
Reputation: Tight_Coder_Ex is an unknown quantity at this point 
Solved Threads: 14
Tight_Coder_Ex's Avatar
Tight_Coder_Ex Tight_Coder_Ex is offline Offline
Junior Poster

Re: difference between pointers and handles

 
0
  #4
Aug 31st, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: Ashu@sym is an unknown quantity at this point 
Solved Threads: 0
Ashu@sym Ashu@sym is offline Offline
Newbie Poster

Re: difference between pointers and handles

 
0
  #5
Sep 1st, 2007
Originally Posted by Hamrick View Post
A handle is an opaque pointer.

Thanks a ton Hamrick!! well the concept is somewhat now clear!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: difference between pointers and handles

 
0
  #6
Sep 1st, 2007
Originally Posted by Ashu@sym View Post
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??
The term handle is used to mean any technique that lets you get to another object — a generalized pseudo-pointer. The term is (intentionally) ambiguous and vague.

Read more
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC