Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HANDLE - what exactly is it ?

HANDLE - what exactly is it ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    big_denny_200
    wrote on last edited by
    #1

    Hello again :) I have a question : What is a handle ? Is it something like pointer ? What is difference for example between HWND and a Cwnd ? Please give me some explicit explanations. Thank you.

    M 1 Reply Last reply
    0
    • B big_denny_200

      Hello again :) I have a question : What is a handle ? Is it something like pointer ? What is difference for example between HWND and a Cwnd ? Please give me some explicit explanations. Thank you.

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      big_denny_200 wrote:

      What is a handle ?

      A handle is a unique serial number for Windows (and managed by Windows) to identify an instance (or a system object like a window, an event, a timer, a mutex, ... ).

      big_denny_200 wrote:

      What is difference for example between HWND and a Cwnd ?

      HWND is a handle: the concept to Windows programming. CWnd is a class type: the concept to C++ language. This type is defined in MFC Library. -- modified at 16:58 Friday 2nd June, 2006 class CWnd has a data member of type HWND.


      Maxwell Chen

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups