Click here to Skip to main content
15,881,516 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to handle time delays Pin
V K 225-May-09 20:32
V K 225-May-09 20:32 
AnswerRe: How to handle time delays Pin
CPallini25-May-09 20:45
mveCPallini25-May-09 20:45 
AnswerRe: How to handle time delays Pin
Rajesh R Subramanian25-May-09 20:53
professionalRajesh R Subramanian25-May-09 20:53 
GeneralRe: How to handle time delays Pin
V K 225-May-09 20:54
V K 225-May-09 20:54 
GeneralRe: How to handle time delays Pin
CPallini25-May-09 20:59
mveCPallini25-May-09 20:59 
QuestionHelp on dynamic memory allocation and deallocation Pin
pani6825-May-09 20:08
pani6825-May-09 20:08 
AnswerRe: Help on dynamic memory allocation and deallocation Pin
«_Superman_»25-May-09 20:22
professional«_Superman_»25-May-09 20:22 
AnswerRe: Help on dynamic memory allocation and deallocation Pin
Cedric Moonen25-May-09 20:29
Cedric Moonen25-May-09 20:29 
In addition to the previous reply, there is one basic rule that you have to remember: for each call to the new operator, there should be a corresponding call to the delete operator if you want to avoir memory leaks.

So, your first solution is wrong because you call new 6 times and only call delete once.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

AnswerRe: Help on dynamic memory allocation and deallocation Pin
Stuart Dootson25-May-09 23:08
professionalStuart Dootson25-May-09 23:08 
AnswerRe: Help on dynamic memory allocation and deallocation Pin
pani6826-May-09 2:15
pani6826-May-09 2:15 
QuestionHow do I convert .CPL to .MSC? Pin
Member 466633025-May-09 19:58
Member 466633025-May-09 19:58 
AnswerRe: How do I convert .CPL to .MSC? Pin
Stuart Dootson25-May-09 23:16
professionalStuart Dootson25-May-09 23:16 
GeneralRe: How do I convert .CPL to .MSC? Pin
Member 466633026-May-09 18:03
Member 466633026-May-09 18:03 
GeneralRe: How do I convert .CPL to .MSC? Pin
Stuart Dootson26-May-09 21:29
professionalStuart Dootson26-May-09 21:29 
GeneralRe: How do I convert .CPL to .MSC? Pin
Member 466633027-May-09 14:48
Member 466633027-May-09 14:48 
GeneralRe: How do I convert .CPL to .MSC? Pin
Stuart Dootson27-May-09 20:50
professionalStuart Dootson27-May-09 20:50 
GeneralRe: How do I convert .CPL to .MSC? Pin
Member 466633027-May-09 20:56
Member 466633027-May-09 20:56 
Question_variant_t Pin
vital_parsley200025-May-09 19:36
vital_parsley200025-May-09 19:36 
AnswerRe: _variant_t Pin
«_Superman_»25-May-09 19:42
professional«_Superman_»25-May-09 19:42 
GeneralRe: _variant_t Pin
vital_parsley200025-May-09 20:47
vital_parsley200025-May-09 20:47 
GeneralRe: _variant_t Pin
«_Superman_»25-May-09 21:51
professional«_Superman_»25-May-09 21:51 
GeneralRe: _variant_t Pin
vital_parsley200025-May-09 21:57
vital_parsley200025-May-09 21:57 
QuestionRe: _variant_t Pin
CPallini25-May-09 22:06
mveCPallini25-May-09 22:06 
GeneralRe: _variant_t Pin
Stuart Dootson26-May-09 0:45
professionalStuart Dootson26-May-09 0:45 
QuestionRead List values Pin
Davitor25-May-09 18:29
Davitor25-May-09 18:29 

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.