Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy the type conversion is needed? Pin
LiYS9-Oct-07 21:37
LiYS9-Oct-07 21:37 
Hi all:

I'm wondering why the following code need type conversion from PVOID to PBYTE, is it because of the type of "Size"? and why PBYTE, will any other type will do the same thing?

PVOID pvAddressBlk;
SIZE_T RegionSize;
pvAddressBlk = (PVOID) ((PBYTE) pvAddressBlk + Size);



Thanks,






AnswerRe: Why the type conversion is needed? Pin
Cedric Moonen9-Oct-07 21:44
Cedric Moonen9-Oct-07 21:44 
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 
GeneralRe: Read stream of bytes in a buffer as a String Pin
CodingLover9-Oct-07 21:05
CodingLover9-Oct-07 21:05 
GeneralRe: Read stream of bytes in a buffer as a String Pin
chandu00410-Oct-07 0:22
chandu00410-Oct-07 0:22 
QuestionRe: Read stream of bytes in a buffer as a String Pin
David Crow10-Oct-07 2:56
David Crow10-Oct-07 2:56 
AnswerRe: Read stream of bytes in a buffer as a String Pin
CodingLover10-Oct-07 19:16
CodingLover10-Oct-07 19:16 
QuestionRe: Read stream of bytes in a buffer as a String Pin
David Crow11-Oct-07 3:04
David Crow11-Oct-07 3:04 
AnswerRe: Read stream of bytes in a buffer as a String Pin
CodingLover11-Oct-07 17:48
CodingLover11-Oct-07 17:48 

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.