Click here to Skip to main content
16,011,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPlease ! answer me ! This is URGENT !!! HELP !!! Pin
21-Jun-01 11:12
suss21-Jun-01 11:12 
GeneralRe: Please ! answer me ! This is URGENT !!! HELP !!! Pin
Carlos Antollini21-Jun-01 11:19
Carlos Antollini21-Jun-01 11:19 
GeneralWhat's wrong here??? Pointer question Pin
21-Jun-01 8:23
suss21-Jun-01 8:23 
GeneralRe: What's wrong here??? Pointer question Pin
Tim Deveaux21-Jun-01 8:49
Tim Deveaux21-Jun-01 8:49 
GeneralRe: What's wrong here??? Pointer question Pin
Richard Cheng21-Jun-01 8:56
Richard Cheng21-Jun-01 8:56 
GeneralRe: What's wrong here??? Pointer question Pin
Tim Deveaux21-Jun-01 9:21
Tim Deveaux21-Jun-01 9:21 
GeneralRe: What's wrong here??? Pointer question Pin
Tomasz Sowinski21-Jun-01 9:12
Tomasz Sowinski21-Jun-01 9:12 
GeneralRe: What's wrong here??? Pointer question Pin
Chris Meech21-Jun-01 9:14
Chris Meech21-Jun-01 9:14 
Unless I'm mistaken here, the line of code causing the memory error is
*(pPtr+i) = i;

You are trying to cause the pointer to point to memory that you have not allocated. Too boot, you then attempt to change the contents of that location by doing the assignment operation.

Chris
GeneralRe: What's wrong here??? Pointer question Pin
21-Jun-01 9:17
suss21-Jun-01 9:17 
GeneralRe: What's wrong here??? Pointer question Pin
Tomasz Sowinski21-Jun-01 9:35
Tomasz Sowinski21-Jun-01 9:35 
GeneralRe: What's wrong here??? Pointer question Pin
Chris Meech21-Jun-01 10:31
Chris Meech21-Jun-01 10:31 
GeneralRe: What's wrong here??? Pointer question Pin
Chris Meech21-Jun-01 10:33
Chris Meech21-Jun-01 10:33 
GeneralRe: What's wrong here??? Pointer question Pin
markkuk24-Jun-01 21:21
markkuk24-Jun-01 21:21 
GeneralRe: What's wrong here??? Pointer question Pin
21-Jun-01 9:19
suss21-Jun-01 9:19 
GeneralTHANK YOU SOOOOO MUCH!!!! Pin
Richard Cheng21-Jun-01 10:38
Richard Cheng21-Jun-01 10:38 
GeneralRe: What's wrong here??? Pointer question Pin
Rejeesh21-Jun-01 22:41
Rejeesh21-Jun-01 22:41 
Generalcouldnt create empty document message Pin
21-Jun-01 8:01
suss21-Jun-01 8:01 
GeneralLooking for info on wring visitors in C++ Pin
Ben Burnett21-Jun-01 7:30
Ben Burnett21-Jun-01 7:30 
GeneralRe: Looking for info on wring visitors in C++ Pin
Tomasz Sowinski21-Jun-01 7:47
Tomasz Sowinski21-Jun-01 7:47 
GeneralRe: Looking for info on wring visitors in C++ Pin
Ben Burnett21-Jun-01 9:13
Ben Burnett21-Jun-01 9:13 
GeneralSyntax question... Pin
John Uhlenbrock21-Jun-01 6:23
John Uhlenbrock21-Jun-01 6:23 
GeneralRe: Syntax question... Pin
Tim Deveaux21-Jun-01 6:46
Tim Deveaux21-Jun-01 6:46 
GeneralOpening/Editing a simple text file Pin
21-Jun-01 6:15
suss21-Jun-01 6:15 
GeneralRe: Opening/Editing a simple text file Pin
Tomasz Sowinski21-Jun-01 6:31
Tomasz Sowinski21-Jun-01 6:31 
GeneralRe: Opening/Editing a simple text file Pin
21-Jun-01 6:53
suss21-Jun-01 6:53 

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.