Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Refresh a form in C++ Builder Pin
David González G26-Jun-09 9:05
David González G26-Jun-09 9:05 
GeneralRe: Refresh a form in C++ Builder Pin
favorxx26-Jun-09 21:15
favorxx26-Jun-09 21:15 
GeneralRe: Refresh a form in C++ Builder Pin
David González G26-Jun-09 22:46
David González G26-Jun-09 22:46 
GeneralRe: Refresh a form in C++ Builder Pin
favorxx27-Jun-09 2:23
favorxx27-Jun-09 2:23 
GeneralRe: Refresh a form in C++ Builder Pin
favorxx27-Jun-09 6:40
favorxx27-Jun-09 6:40 
GeneralRe: Refresh a form in C++ Builder Pin
David González G27-Jun-09 11:35
David González G27-Jun-09 11:35 
GeneralRe: Refresh a form in C++ Builder Pin
favorxx27-Jun-09 16:59
favorxx27-Jun-09 16:59 
Questionthe use of 'new' Pin
thelonesquirrely26-Jun-09 5:40
thelonesquirrely26-Jun-09 5:40 
Hello,

I am no stranger to the idea that when you call 'new obj' it allocates dynamic memory of the heap, yada yada yada. Mainly call the corresponding 'delete obj' as is dictated by the language.

my question is with the practice of using it as you call a function:

...foo (new bar ())...

I've seen this done a lot, i was wondering why. it is a nice syntax, looks good, but seems dangerous. no handle to the obj to delete it, relying on the underlying func to take responsibility, dangerous most def. i feel like i am missing something about it. Ideas?
AnswerRe: the use of 'new' Pin
Rajesh R Subramanian26-Jun-09 5:58
professionalRajesh R Subramanian26-Jun-09 5:58 
AnswerRe: the use of 'new' Pin
Chris Losinger26-Jun-09 7:51
professionalChris Losinger26-Jun-09 7:51 
GeneralRe: the use of 'new' Pin
CPallini26-Jun-09 8:54
mveCPallini26-Jun-09 8:54 
AnswerRe: the use of 'new' Pin
Nemanja Trifunovic26-Jun-09 9:25
Nemanja Trifunovic26-Jun-09 9:25 
GeneralRe: the use of 'new' Pin
CPallini26-Jun-09 9:51
mveCPallini26-Jun-09 9:51 
GeneralRe: the use of 'new' Pin
norish26-Jun-09 16:21
norish26-Jun-09 16:21 
AnswerRe: the use of 'new' Pin
Joe Woodbury27-Jun-09 17:48
professionalJoe Woodbury27-Jun-09 17:48 
QuestionNTGraph Zoom [modified] Pin
KevinVS26-Jun-09 4:26
KevinVS26-Jun-09 4:26 
QuestionRe: NTGraph Zoom Pin
CPallini26-Jun-09 5:00
mveCPallini26-Jun-09 5:00 
Questionhow to change data of struture object in file Pin
ashish8patil26-Jun-09 4:11
ashish8patil26-Jun-09 4:11 
QuestionRe: how to change data of struture object in file Pin
David Crow26-Jun-09 4:40
David Crow26-Jun-09 4:40 
QuestionRe: how to change data of struture object in file Pin
CPallini26-Jun-09 4:56
mveCPallini26-Jun-09 4:56 
QuestionProblem using MsiGetProductInfo for retreving the product version Pin
V K 226-Jun-09 2:48
V K 226-Jun-09 2:48 
AnswerRe: Problem using MsiGetProductInfo for retreving the product version Pin
Rajesh R Subramanian26-Jun-09 3:26
professionalRajesh R Subramanian26-Jun-09 3:26 
QuestionProgram not giving desired output Pin
Razanust26-Jun-09 2:31
Razanust26-Jun-09 2:31 
AnswerRe: Program not giving desired output Pin
Rajesh R Subramanian26-Jun-09 2:37
professionalRajesh R Subramanian26-Jun-09 2:37 
AnswerRe: Program not giving desired output Pin
CPallini26-Jun-09 2:40
mveCPallini26-Jun-09 2:40 

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.