Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Disable SSL cert. warning dialog in webbrowser control Pin
toxcct8-Aug-07 0:09
toxcct8-Aug-07 0:09 
GeneralRe: Disable SSL cert. warning dialog in webbrowser control Pin
rrrado8-Aug-07 4:22
rrrado8-Aug-07 4:22 
GeneralRe: Disable SSL cert. warning dialog in webbrowser control Pin
toxcct8-Aug-07 5:02
toxcct8-Aug-07 5:02 
Questionhow can i delete a 3D array? Pin
MahaKh7-Aug-07 22:37
MahaKh7-Aug-07 22:37 
QuestionRe: how can i delete a 3D array? Pin
baerten7-Aug-07 22:47
baerten7-Aug-07 22:47 
AnswerRe: how can i delete a 3D array? Pin
ThatsAlok7-Aug-07 22:57
ThatsAlok7-Aug-07 22:57 
JokeRe: how can i delete a 3D array? Pin
jk chan7-Aug-07 23:07
jk chan7-Aug-07 23:07 
AnswerRe: how can i delete a 3D array? Pin
David Crow8-Aug-07 2:42
David Crow8-Aug-07 2:42 
If you used the new[] operator to create the array, then you must use the delete[] operator to destroy it, just in reverse order.

// 1D
int *pNum = new int[5];
...
delete [] pNum;
 
// 2D
int **p = new int*[5]; 
for(int i = 0; i < 5; i++) 
     p[i] = new int[8]; 
...
for(int i = 0; i < 5; i++) 
     delete [] p[i];
 
delete [] p;



"A good athlete is the result of a good and worthy opponent." - David Crow

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


QuestionNotify parent window of getting focus Pin
AchillesXu7-Aug-07 22:12
AchillesXu7-Aug-07 22:12 
AnswerRe: Notify parent window of getting focus Pin
baerten7-Aug-07 22:52
baerten7-Aug-07 22:52 
AnswerRe: Notify parent window of getting focus Pin
jk chan7-Aug-07 23:09
jk chan7-Aug-07 23:09 
AnswerRe: Notify parent window of getting focus Pin
Nishad S8-Aug-07 0:05
Nishad S8-Aug-07 0:05 
GeneralRe: Notify parent window of getting focus Pin
AchillesXu8-Aug-07 1:35
AchillesXu8-Aug-07 1:35 
GeneralRe: Notify parent window of getting focus Pin
Nishad S8-Aug-07 2:08
Nishad S8-Aug-07 2:08 
GeneralRe: Notify parent window of getting focus Pin
AchillesXu8-Aug-07 17:15
AchillesXu8-Aug-07 17:15 
Question[VC8, MFC, PPC] Using Media Player SDK Pin
m.trix7-Aug-07 22:05
m.trix7-Aug-07 22:05 
AnswerRe: [VC8, MFC, PPC] Using Media Player SDK Pin
robyn3910-Mar-09 11:06
robyn3910-Mar-09 11:06 
QuestionSetup installer vs custom action conditioned Pin
Russell'7-Aug-07 21:42
Russell'7-Aug-07 21:42 
Questionlinker error identifier already defined Pin
prithaa7-Aug-07 20:52
prithaa7-Aug-07 20:52 
AnswerRe: linker error identifier already defined Pin
Paresh Chitte7-Aug-07 21:06
Paresh Chitte7-Aug-07 21:06 
AnswerRe: linker error identifier already defined Pin
Cedric Moonen7-Aug-07 21:07
Cedric Moonen7-Aug-07 21:07 
GeneralRe: linker error identifier already defined Pin
prithaa7-Aug-07 21:23
prithaa7-Aug-07 21:23 
GeneralRe: linker error identifier already defined Pin
Cedric Moonen7-Aug-07 21:30
Cedric Moonen7-Aug-07 21:30 
GeneralRe: linker error identifier already defined Pin
prasad_som7-Aug-07 21:34
prasad_som7-Aug-07 21:34 
AnswerRe: linker error identifier already defined Pin
Russell'7-Aug-07 21:57
Russell'7-Aug-07 21:57 

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.