Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Not Doc/View Pin
Tomasz Sowinski30-Jul-01 8:49
Tomasz Sowinski30-Jul-01 8:49 
Generalhelp! message handling in general Pin
27-Jul-01 10:45
suss27-Jul-01 10:45 
GeneralRe: help! message handling in general Pin
Neville Franks27-Jul-01 12:40
Neville Franks27-Jul-01 12:40 
GeneralRe: help! message handling in general Pin
august27-Jul-01 13:04
august27-Jul-01 13:04 
GeneralThanks for all the help :) Pin
Derek Lakin31-Jul-01 2:53
Derek Lakin31-Jul-01 2:53 
QuestionCan anybody help me? Pin
26-Jul-01 22:52
suss26-Jul-01 22:52 
AnswerCan anybody tell me why? Pin
26-Jul-01 23:26
suss26-Jul-01 23:26 
GeneralRe: Can anybody tell me why? Pin
Chris Losinger27-Jul-01 1:50
professionalChris Losinger27-Jul-01 1:50 
the problem is that a pointer is just a number. there's nothing else to it. and when you change its value, it no longer points to the same thing.

but when you delete something, the pointer you're deleting must point to the start of the block of memory that was actually allocated - which it probably won't be, if you've changed the pointer's value.

so, do something like:
MyStructure *pMyStructure = new MyStructure[ELEMENTS]; 
// Do some code here 
MyStructure *pCur = pMyStructure;
pCur++;... whatever you want.

// delete the original
delete [] MyStructure;


-c

------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
GeneralRe: Can anybody tell me why? Pin
27-Jul-01 1:56
suss27-Jul-01 1:56 
GeneralItem, GetItem... Pin
Gérald Mercet26-Jul-01 22:39
Gérald Mercet26-Jul-01 22:39 
GeneralSaving for the future Pin
Joe Moldovan26-Jul-01 22:36
Joe Moldovan26-Jul-01 22:36 
GeneralRe: Saving for the future Pin
Paolo Messina27-Jul-01 10:33
professionalPaolo Messina27-Jul-01 10:33 
Generalneed an advice... Pin
26-Jul-01 22:05
suss26-Jul-01 22:05 
GeneralTrichEdit Pin
26-Jul-01 22:01
suss26-Jul-01 22:01 
GeneralRe: TrichEdit Pin
Paolo Messina27-Jul-01 10:27
professionalPaolo Messina27-Jul-01 10:27 
GeneralProblem around usage of RUNTIME_CLASS Pin
EiSl26-Jul-01 21:42
EiSl26-Jul-01 21:42 
GeneralRe: Problem around usage of RUNTIME_CLASS Pin
Tomasz Sowinski27-Jul-01 4:43
Tomasz Sowinski27-Jul-01 4:43 
GeneralNT management Pin
Serge A. Zhirko26-Jul-01 21:27
Serge A. Zhirko26-Jul-01 21:27 
GeneralRe: NT management Pin
Jon Sagara26-Jul-01 22:07
Jon Sagara26-Jul-01 22:07 
QuestionHow declare a Function with 8 Inputs and 4 Outputs ?? Pin
youssef26-Jul-01 20:59
youssef26-Jul-01 20:59 
AnswerRe: How declare a Function with 8 Inputs and 4 Outputs ?? Pin
26-Jul-01 21:50
suss26-Jul-01 21:50 
GeneralRe: How declare a Function with 8 Inputs and 4 Outputs ?? Pin
fantastic_mr_fox26-Jul-01 23:21
fantastic_mr_fox26-Jul-01 23:21 
GeneralPreprocessor defines and MFC Pin
Serge A. Zhirko26-Jul-01 19:42
Serge A. Zhirko26-Jul-01 19:42 
GeneralRe: Preprocessor defines and MFC Pin
Michael Dunn26-Jul-01 20:26
sitebuilderMichael Dunn26-Jul-01 20:26 
QuestionHow to Inport A Resource and its Class Pin
nulldreamer26-Jul-01 16:46
nulldreamer26-Jul-01 16:46 

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.