Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Non-rectangular client area Pin
Nishad S9-Oct-07 23:29
Nishad S9-Oct-07 23:29 
GeneralRe: Non-rectangular client area Pin
Nelek10-Oct-07 0:30
protectorNelek10-Oct-07 0:30 
GeneralRe: Non-rectangular client area Pin
Nishad S10-Oct-07 2:27
Nishad S10-Oct-07 2:27 
GeneralRe: Non-rectangular client area Pin
Nelek10-Oct-07 20:39
protectorNelek10-Oct-07 20:39 
AnswerRe: Non-rectangular client area Pin
eli1502197910-Oct-07 0:02
eli1502197910-Oct-07 0:02 
GeneralRe: Non-rectangular client area Pin
Nishad S10-Oct-07 0:10
Nishad S10-Oct-07 0:10 
AnswerRe: Non-rectangular client area Pin
Mark Salsbery10-Oct-07 6:14
Mark Salsbery10-Oct-07 6:14 
GeneralRe: Non-rectangular client area Pin
Nishad S10-Oct-07 17:45
Nishad S10-Oct-07 17:45 
AnswerRe: Non-rectangular client area Pin
David Crow11-Oct-07 2:58
David Crow11-Oct-07 2:58 
GeneralRe: Non-rectangular client area Pin
Nishad S11-Oct-07 18:48
Nishad S11-Oct-07 18:48 
AnswerRe: Non-rectangular client area [modified] Pin
rnendel1-Feb-10 6:06
rnendel1-Feb-10 6:06 
GeneralRe: Non-rectangular client area Pin
Nishad S1-Feb-10 13:36
Nishad S1-Feb-10 13:36 
Questionrequest time out Pin
neha.agarwal279-Oct-07 22:20
neha.agarwal279-Oct-07 22:20 
AnswerRe: request time out Pin
Nelek9-Oct-07 22:24
protectorNelek9-Oct-07 22:24 
GeneralRe: request time out Pin
neha.agarwal2710-Oct-07 23:50
neha.agarwal2710-Oct-07 23:50 
GeneralRe: request time out Pin
Nelek29-Oct-07 22:15
protectorNelek29-Oct-07 22:15 
QuestionDLL Information Pin
Sunil Bhaskar9-Oct-07 21:56
Sunil Bhaskar9-Oct-07 21:56 
QuestionDesktop Changed Information Pin
ashishbhatt9-Oct-07 21:50
ashishbhatt9-Oct-07 21:50 
AnswerRe: Desktop Changed Information Pin
David Crow11-Oct-07 2:56
David Crow11-Oct-07 2:56 
QuestionWhy the type conversion is needed? Pin
LiYS9-Oct-07 21:37
LiYS9-Oct-07 21:37 
AnswerRe: Why the type conversion is needed? Pin
Cedric Moonen9-Oct-07 21:44
Cedric Moonen9-Oct-07 21:44 
Because you are doing pointers arithmetics here. A PVOID pointer is a pointer to an unknown type (so, which size is not known). In that case, you cannot increment the pointer because the size to which it points to is unknown (so, impossible to go to the next element). A pointer to a byte (PBYTE) knows the size to which it points to (1 byte), so incrementing the pointer will move to the next byte.

Similarly, if you casted your pointer to int* for example, then incrementing (++) the pointer would make it points 4 bytes after its current position (because the size of an int is 4 bytes, so, the next integer is 4 bytes after the current position).

Hope it is clear.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Why the type conversion is needed? Pin
LiYS9-Oct-07 22:06
LiYS9-Oct-07 22:06 
AnswerRe: Why the type conversion is needed? Pin
Naveen9-Oct-07 21:48
Naveen9-Oct-07 21:48 
GeneralRe: Why the type conversion is needed? Pin
LiYS9-Oct-07 22:06
LiYS9-Oct-07 22:06 
QuestionInternetFindNextFile function falis Pin
onlyjaypatel9-Oct-07 19:50
onlyjaypatel9-Oct-07 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.