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. Finished 2 C++ books, starting third and questions remain

Finished 2 C++ books, starting third and questions remain

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comloungelearning
6 Posts 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    The first 2 books didn't address these issues and the third book assumes the reader has the following knowledge, so I turn to codeproject for the answers, google came up with mixed results for some of the following, so I was hoping a community with experience could sum it up nicely instead of working through google more then what I have, What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

    Check out the CodeProject forum Guidelines[^]

    L E R D 4 Replies Last reply
    0
    • L Lost User

      The first 2 books didn't address these issues and the third book assumes the reader has the following knowledge, so I turn to codeproject for the answers, google came up with mixed results for some of the following, so I was hoping a community with experience could sum it up nicely instead of working through google more then what I have, What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

      Check out the CodeProject forum Guidelines[^]

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      1,2 and 3 are not C++ types. They are code defined types so you should be able to go to the definition using the IDE tools you are working with. The general rule I go by is to only use pointers when absolutely necessary. Mostly this translates to when it has been determined that using the heap is required. Also translates to when a reference type will not satisfy the requirements.

      1 Reply Last reply
      0
      • L Lost User

        The first 2 books didn't address these issues and the third book assumes the reader has the following knowledge, so I turn to codeproject for the answers, google came up with mixed results for some of the following, so I was hoping a community with experience could sum it up nicely instead of working through google more then what I have, What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

        Check out the CodeProject forum Guidelines[^]

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        Handle : Handle to an object. It may point to any object. For example a Handle to a window. PVOID is nothing but a void*. "P" means a pointer. DWORD is 32 bit unsigned integer.

        EliottA wrote:

        Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

        The general answer is , if you can use & do not use *. Moreoever you can send * as *&.

        He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

        1 Reply Last reply
        0
        • L Lost User

          The first 2 books didn't address these issues and the third book assumes the reader has the following knowledge, so I turn to codeproject for the answers, google came up with mixed results for some of the following, so I was hoping a community with experience could sum it up nicely instead of working through google more then what I have, What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

          Check out the CodeProject forum Guidelines[^]

          R Offline
          R Offline
          Ric Ashton
          wrote on last edited by
          #4

          You need to buy the complete reference book. Something like the 'The Waite Group's' Turbo C++ Bible, or something more up-to-date. Utilising DWORD (for example) is a complex issue reserved for programmers with some experience. To find out what it is used for and how it is used you might involve yourself with the complex issue of 'sound' and search the internet for applicable code in this area. I think this is why nobody had yet replied.

          1 Reply Last reply
          0
          • L Lost User

            The first 2 books didn't address these issues and the third book assumes the reader has the following knowledge, so I turn to codeproject for the answers, google came up with mixed results for some of the following, so I was hoping a community with experience could sum it up nicely instead of working through google more then what I have, What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

            Check out the CodeProject forum Guidelines[^]

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            EliottA wrote:

            What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD

            See here.

            EliottA wrote:

            Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

            See here.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            L 1 Reply Last reply
            0
            • D David Crow

              EliottA wrote:

              What exactly are the following datatypes 1. Handle 2. PVOID 3. DWORD

              See here.

              EliottA wrote:

              Also, a general question, why use pointers (*) if you can use Addresses (&) to reference objects?

              See here.

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup: Thanks buddy

              Check out the CodeProject forum Guidelines[^]

              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