Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7963603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:38:44+00:00 2026-06-04T05:38:44+00:00

I cannot say I have a strong C++ background so I hear Handle very

  • 0

I cannot say I have a strong C++ background so I hear Handle very often these days. I know what a Pointer is (which stores address of the memory location like reference) but I am not really sure what Handle is and what the differences are between these two. And a sample code in C# would be great if you can provide one.

By the way I googled this terms however many people gave different explanations so I think I get the best one from SO.

EDIT:

A quick heads-up for the other visitors: A handle is like a reference which points a resource. It can point at a memory address like a Pointer but Handle is more general term so it is more like a pseudo-pointer. A file is a good example for this. A file can have an ID which OS can understand and use to find the file. So Handle can hold this ID (which may or may not be a Memory Address) and when we pass this Handle in, OS can find the file easily.

Please refer to answers below for more detailed information.

Edit:

All the answers under this question are awesome and very explanatory. I am having a hard time to select one of them to mark it as answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:38:45+00:00Added an answer on June 4, 2026 at 5:38 am

    Sorry, no C# example, but:

    Pointer is a memory address, which in this case points to where the object is stored in memory. This is a low level concept that C++ inherited from C.

    Regarding the handle:

    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.

    One more important term that is closely related is an object reference, which is an “alias” for the object.

    You may get a rather clear and concise answers on this page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

WCF gurus, you probably already know the answer I cannot find ... let's say
Let's say I have a GridViewEx class declared which extends GridView . And inside
Let us say we have a key with values which are polymorphic in their
Say I have an array of chars, which I have allocated on the heap,
Let's say I have 3 projects: 1 Web Project which is in .NET MVC3
Say I have 5 strong elements, and I want to wrap them in div
Let's say I have a library Lib.dll, which uses Castle.Windsor to initialize its services.
Background We have a fairly complex Silverlight client which we are rewriting in HTML/Javascript/CSS,
I cannot wrap my head around the following, say I have a List, each
The perldocs say the following about last : last cannot be used to exit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.