Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLink issue with VS 2005 Pin
ky_rerun8-Sep-06 8:31
ky_rerun8-Sep-06 8:31 
AnswerRe: Link issue with VS 2005 Pin
ky_rerun8-Sep-06 8:35
ky_rerun8-Sep-06 8:35 
Questionpointers and array of pointers question Pin
kitty58-Sep-06 8:01
kitty58-Sep-06 8:01 
AnswerRe: pointers and array of pointers question Pin
David Crow8-Sep-06 8:04
David Crow8-Sep-06 8:04 
GeneralRe: pointers and array of pointers question Pin
kitty58-Sep-06 8:06
kitty58-Sep-06 8:06 
AnswerRe: pointers and array of pointers question Pin
Cedric Moonen8-Sep-06 8:18
Cedric Moonen8-Sep-06 8:18 
AnswerRe: pointers and array of pointers question Pin
Chris Losinger8-Sep-06 8:27
professionalChris Losinger8-Sep-06 8:27 
AnswerRe: pointers and array of pointers question Pin
David Crow8-Sep-06 8:28
David Crow8-Sep-06 8:28 
kitty5 wrote:
buff[num]+= 2028;//increment the pointer to the next chunk


You can't do this and expect to be able to delete the memory. The statement buff[0] = new UCHAR[45000000] assigned a specific memory address to buff[0]. If you advance that address by 2048 bytes, the delete operator will fail. Try:

ReadFile(..., buff[num]+offset, ...);
offset += 2048;



"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: pointers and array of pointers question Pin
kitty58-Sep-06 10:20
kitty58-Sep-06 10:20 
GeneralRe: pointers and array of pointers question Pin
David Crow8-Sep-06 10:26
David Crow8-Sep-06 10:26 
GeneralRe: pointers and array of pointers question Pin
Jörgen Sigvardsson8-Sep-06 11:33
Jörgen Sigvardsson8-Sep-06 11:33 
Questionwindows system clock temper track Pin
dummy8088-Sep-06 7:19
dummy8088-Sep-06 7:19 
QuestionRe: windows system clock temper track Pin
David Crow8-Sep-06 8:02
David Crow8-Sep-06 8:02 
AnswerRe: windows system clock temper track Pin
Gary R. Wheeler9-Sep-06 5:38
Gary R. Wheeler9-Sep-06 5:38 
QuestionDecorated Splitter Bar - SOLVED Pin
#realJSOP8-Sep-06 6:51
mve#realJSOP8-Sep-06 6:51 
Questionvisual c++ 2005 newbie Pin
Lampros Giampouras8-Sep-06 6:48
Lampros Giampouras8-Sep-06 6:48 
AnswerRe: visual c++ 2005 newbie Pin
Jun Du8-Sep-06 7:11
Jun Du8-Sep-06 7:11 
GeneralRe: visual c++ 2005 newbie Pin
Lampros Giampouras8-Sep-06 7:28
Lampros Giampouras8-Sep-06 7:28 
AnswerRe: visual c++ 2005 newbie Pin
Cedric Moonen8-Sep-06 8:03
Cedric Moonen8-Sep-06 8:03 
QuestionRe: visual c++ 2005 newbie Pin
David Crow8-Sep-06 8:05
David Crow8-Sep-06 8:05 
AnswerRe: visual c++ 2005 newbie Pin
Cedric Moonen8-Sep-06 8:12
Cedric Moonen8-Sep-06 8:12 
GeneralRe: visual c++ 2005 newbie Pin
Jun Du8-Sep-06 9:13
Jun Du8-Sep-06 9:13 
QuestionApartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 5:45
BadJerry8-Sep-06 5:45 
AnswerRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
JWood8-Sep-06 6:53
JWood8-Sep-06 6:53 
GeneralRe: Apartment model, COM and misery (duplicate from the COM forum) Pin
BadJerry8-Sep-06 7:02
BadJerry8-Sep-06 7:02 

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.