Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCapture Webcam Image Pin
Chintan11-Feb-03 1:17
Chintan11-Feb-03 1:17 
GeneralRe: Capture Webcam Image Pin
benjymous11-Feb-03 3:02
benjymous11-Feb-03 3:02 
GeneralRe: Capture Webcam Image Pin
Chintan18-Feb-03 18:23
Chintan18-Feb-03 18:23 
GeneralMs Word Automation - How to center a Table Pin
Rafoloman11-Feb-03 1:16
Rafoloman11-Feb-03 1:16 
GeneralQuestion about delete a char* pointer Pin
George211-Feb-03 0:48
George211-Feb-03 0:48 
GeneralRe: Question about delete a char* pointer Pin
karl_w11-Feb-03 1:05
karl_w11-Feb-03 1:05 
GeneralRe: Question about delete a char* pointer Pin
George211-Feb-03 1:14
George211-Feb-03 1:14 
GeneralRe: Question about delete a char* pointer Pin
jhwurmbach11-Feb-03 1:07
jhwurmbach11-Feb-03 1:07 
Rule of thumb: You did not call new, you do not need to call delete.

For
char* r = new char[MAX_PATH+1];
you would call
delete[] r;
since you did a new[].

But this is one of the cases where it does not matter, since char is an integral type and as such has no constructor or destructor.

The difference between delete and delete[] is that delete[] calls the destructor of every item to be deleted, whereas delete calls only the destructor of the first item.


My opinions may have changed, but not the fact that I am right.
GeneralRe: Question about delete a char* pointer Pin
George211-Feb-03 1:15
George211-Feb-03 1:15 
GeneralRe: Question about delete a char* pointer Pin
peterchen11-Feb-03 2:05
peterchen11-Feb-03 2:05 
GeneralRe: Question about delete a char* pointer Pin
George211-Feb-03 13:07
George211-Feb-03 13:07 
Questionhelp please??? Pin
xxhimanshu11-Feb-03 0:02
xxhimanshu11-Feb-03 0:02 
AnswerRe: help please??? Pin
Mike Eriksson11-Feb-03 4:04
Mike Eriksson11-Feb-03 4:04 
GeneralCListCtrl - stop headers from being resized Pin
Tre K Renegade11-Feb-03 0:01
Tre K Renegade11-Feb-03 0:01 
GeneralRe: CListCtrl - stop headers from being resized Pin
Roger Allen11-Feb-03 2:06
Roger Allen11-Feb-03 2:06 
GeneralRe: CListCtrl - stop headers from being resized Pin
Mike Upton11-Feb-03 2:08
Mike Upton11-Feb-03 2:08 
GeneralRe: CListCtrl - stop headers from being resized Pin
OBRon11-Feb-03 2:34
OBRon11-Feb-03 2:34 
GeneralRe: CListCtrl - stop headers from being resized Pin
Tre K Renegade11-Feb-03 2:52
Tre K Renegade11-Feb-03 2:52 
GeneralRe: CListCtrl - stop headers from being resized Pin
Mike Upton11-Feb-03 5:18
Mike Upton11-Feb-03 5:18 
GeneralRe: CListCtrl - stop headers from being resized Pin
Tre K Renegade11-Feb-03 6:58
Tre K Renegade11-Feb-03 6:58 
GeneralRe: CListCtrl - stop headers from being resized Pin
Chris Richardson11-Feb-03 9:02
Chris Richardson11-Feb-03 9:02 
GeneralProblem solved - here's a report Pin
Tre K Renegade12-Feb-03 1:00
Tre K Renegade12-Feb-03 1:00 
GeneralSet Registry access denied Pin
rohit.dhamija10-Feb-03 23:03
rohit.dhamija10-Feb-03 23:03 
General#iclude problems Pin
mehere10-Feb-03 22:52
mehere10-Feb-03 22:52 
GeneralRe: #iclude problems Pin
jhwurmbach10-Feb-03 23:51
jhwurmbach10-Feb-03 23:51 

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.