Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 5:36
neodeaths13-Nov-07 5:36 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
jhwurmbach13-Nov-07 5:45
jhwurmbach13-Nov-07 5:45 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 5:51
neodeaths13-Nov-07 5:51 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
jhwurmbach13-Nov-07 5:54
jhwurmbach13-Nov-07 5:54 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 6:03
neodeaths13-Nov-07 6:03 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
jhwurmbach13-Nov-07 6:06
jhwurmbach13-Nov-07 6:06 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 6:11
neodeaths13-Nov-07 6:11 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
David Crow13-Nov-07 5:55
David Crow13-Nov-07 5:55 
neodeaths wrote:
so reallocate would do the work of allocating the new memory i want to use for me?


Yes.

neodeaths wrote:
what about the old one do i need to free the memory myself?


No.

neodeaths wrote:
also would the reallocated memory contain my old infomation...


Yes.




"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 17:11
neodeaths13-Nov-07 17:11 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
David Crow13-Nov-07 17:20
David Crow13-Nov-07 17:20 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 17:57
neodeaths13-Nov-07 17:57 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
David Crow14-Nov-07 2:26
David Crow14-Nov-07 2:26 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
neodeaths13-Nov-07 22:04
neodeaths13-Nov-07 22:04 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
David Crow14-Nov-07 2:23
David Crow14-Nov-07 2:23 
AnswerRe: how to do dynamic memory allocation for stuct? Pin
Matthew Faithfull12-Nov-07 23:50
Matthew Faithfull12-Nov-07 23:50 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
Cedric Moonen13-Nov-07 1:24
Cedric Moonen13-Nov-07 1:24 
AnswerRe: how to do dynamic memory allocation for stuct? Pin
ThatsAlok13-Nov-07 0:37
ThatsAlok13-Nov-07 0:37 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
Iain Clarke, Warrior Programmer13-Nov-07 2:56
Iain Clarke, Warrior Programmer13-Nov-07 2:56 
GeneralRe: how to do dynamic memory allocation for stuct? Pin
ThatsAlok13-Nov-07 4:45
ThatsAlok13-Nov-07 4:45 
QuestionHow to hide or package resource folder? Pin
Peter, Chan12-Nov-07 22:22
Peter, Chan12-Nov-07 22:22 
AnswerRe: How to hide or package resource folder? Pin
ThatsAlok13-Nov-07 0:51
ThatsAlok13-Nov-07 0:51 
QuestionOutlook Automation Pin
NiceNaidu12-Nov-07 22:12
NiceNaidu12-Nov-07 22:12 
AnswerRe: Outlook Automation Pin
David Crow13-Nov-07 3:34
David Crow13-Nov-07 3:34 
GeneralRe: Outlook Automation Pin
NiceNaidu13-Nov-07 5:47
NiceNaidu13-Nov-07 5:47 
GeneralRe: Outlook Automation Pin
David Crow13-Nov-07 5:54
David Crow13-Nov-07 5:54 

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.