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