Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionRe: InternetFindNextFile function falis Pin
David Crow10-Oct-07 2:57
David Crow10-Oct-07 2:57 
AnswerRe: InternetFindNextFile function falis Pin
onlyjaypatel10-Oct-07 19:11
onlyjaypatel10-Oct-07 19:11 
GeneralRe: InternetFindNextFile function falis Pin
David Crow11-Oct-07 2:52
David Crow11-Oct-07 2:52 
GeneralRe: InternetFindNextFile function falis Pin
onlyjaypatel16-Oct-07 20:53
onlyjaypatel16-Oct-07 20:53 
QuestionWhere is the first data location in Monochrome BMP image? Pin
Mohammad Khodaea9-Oct-07 19:24
Mohammad Khodaea9-Oct-07 19:24 
AnswerRe: Where is the first data location in Monochrome BMP image? Pin
Nishad S9-Oct-07 19:48
Nishad S9-Oct-07 19:48 
AnswerRe: Where is the first data location in Monochrome BMP image? Pin
Mark Salsbery10-Oct-07 6:19
Mark Salsbery10-Oct-07 6:19 
QuestionRead stream of bytes in a buffer as a String [modified] Pin
CodingLover9-Oct-07 18:40
CodingLover9-Oct-07 18:40 
AnswerRe: Read stream of bytes in a buffer as a String Pin
chandu0049-Oct-07 18:57
chandu0049-Oct-07 18:57 
GeneralRe: Read stream of bytes in a buffer as a String [modified] Pin
CodingLover9-Oct-07 19:05
CodingLover9-Oct-07 19:05 
GeneralRe: Read stream of bytes in a buffer as a String Pin
chandu0049-Oct-07 19:17
chandu0049-Oct-07 19:17 
GeneralRe: Read stream of bytes in a buffer as a String Pin
CodingLover9-Oct-07 19:28
CodingLover9-Oct-07 19:28 
GeneralRe: Read stream of bytes in a buffer as a String Pin
ktm TechMan9-Oct-07 20:56
ktm TechMan9-Oct-07 20:56 

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.