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

C / C++ / MFC

 
QuestionInstall runtime libraries??? Pin
CTaylor898-Sep-06 8:50
CTaylor898-Sep-06 8:50 
AnswerRe: Install runtime libraries??? Pin
Jun Du8-Sep-06 9:18
Jun Du8-Sep-06 9:18 
GeneralRe: Install runtime libraries??? Pin
CTaylor898-Sep-06 10:14
CTaylor898-Sep-06 10:14 
GeneralRe: Install runtime libraries??? Pin
CTaylor898-Sep-06 11:06
CTaylor898-Sep-06 11:06 
GeneralRe: Install runtime libraries??? Pin
Dave Calkins8-Sep-06 13:03
Dave Calkins8-Sep-06 13:03 
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 
originally i had:
UCHAR *buff1 = 0, *buff2 = 0,*buff3 = 0;
buff1 = new UCHAR[45000000];
and I used it:
ReadFile(...,...,buff1+offset,...,NULL);
and that was fine.

then I changed it so that it's more flexible:
UCHAR *buff[3];
buff[0] = new UCHAR[45000000];
buff[1] = new UCHAR[45000000];
buff[2] = new UCHAR[45000000];
when I do:
ReadFile(...,...,buff[num],...,NULL);
buff[num]+= 2028;//increment the pointer to the next chunk
I get the error code "998" which is "Invalid access to memory location."

could someone please explain to me what I'm doing wrong?
thanks!





Kitty5

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 
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 

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.