Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: New to VC++ Pin
ThatsAlok15-Mar-07 20:36
ThatsAlok15-Mar-07 20:36 
QuestionAllocate memory inside function ?? Pin
fx920014-Mar-07 21:45
fx920014-Mar-07 21:45 
AnswerRe: Allocate memory inside function ?? Pin
toxcct14-Mar-07 22:10
toxcct14-Mar-07 22:10 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:17
fx920014-Mar-07 22:17 
GeneralRe: Allocate memory inside function ?? Pin
toxcct14-Mar-07 22:21
toxcct14-Mar-07 22:21 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:25
fx920014-Mar-07 22:25 
AnswerRe: Allocate memory inside function ?? Pin
prasad_som14-Mar-07 22:33
prasad_som14-Mar-07 22:33 
AnswerRe: Allocate memory inside function ?? Pin
Cedric Moonen14-Mar-07 22:15
Cedric Moonen14-Mar-07 22:15 
fx9200 wrote:
the memory space was not kept after function return;


You need to pass your pointer by reference. Otherwise it will still point at the previous memory location.


Cédric Moonen
Software developer

Charting control [v1.1]

GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:34
fx920014-Mar-07 22:34 
GeneralRe: Allocate memory inside function ?? Pin
David Crow15-Mar-07 2:56
David Crow15-Mar-07 2:56 
GeneralRe: Allocate memory inside function ?? Pin
toxcct14-Mar-07 22:41
toxcct14-Mar-07 22:41 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:46
fx920014-Mar-07 22:46 
GeneralRe: Allocate memory inside function ?? Pin
toxcct14-Mar-07 22:55
toxcct14-Mar-07 22:55 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:57
fx920014-Mar-07 22:57 
AnswerRe: Allocate memory inside function ?? Pin
prasad_som14-Mar-07 22:56
prasad_som14-Mar-07 22:56 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 23:07
fx920014-Mar-07 23:07 
QuestionRe: Allocate memory inside function ?? Pin
prasad_som14-Mar-07 23:12
prasad_som14-Mar-07 23:12 
AnswerRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 23:22
fx920014-Mar-07 23:22 
AnswerRe: Allocate memory inside function ?? Pin
prasad_som14-Mar-07 23:28
prasad_som14-Mar-07 23:28 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 23:37
fx920014-Mar-07 23:37 
GeneralRe: Allocate memory inside function ?? Pin
Roger Stoltz15-Mar-07 0:43
Roger Stoltz15-Mar-07 0:43 
AnswerRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:56
fx920014-Mar-07 22:56 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 23:15
fx920014-Mar-07 23:15 
QuestionRun exe from mfc Pin
jeepoo14-Mar-07 21:25
jeepoo14-Mar-07 21:25 
AnswerRe: Run exe from mfc Pin
prasad_som14-Mar-07 21:38
prasad_som14-Mar-07 21:38 

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.