Click here to Skip to main content
15,915,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisplay menu on button Pin
verma-rahul12-Oct-04 3:31
verma-rahul12-Oct-04 3:31 
GeneralRe: Display menu on button Pin
Ravi Bhavnani12-Oct-04 4:00
professionalRavi Bhavnani12-Oct-04 4:00 
GeneralRe: Display menu on button Pin
verma-rahul12-Oct-04 5:28
verma-rahul12-Oct-04 5:28 
GeneralDSN-less remote MS sql server connection Pin
tgprakash12-Oct-04 3:29
tgprakash12-Oct-04 3:29 
Generaldouble pointers deleting Pin
Majid Shahabfar12-Oct-04 3:26
Majid Shahabfar12-Oct-04 3:26 
GeneralRe: double pointers deleting Pin
Cedric Moonen12-Oct-04 4:02
Cedric Moonen12-Oct-04 4:02 
GeneralRe: double pointers deleting Pin
Majid Shahabfar12-Oct-04 10:23
Majid Shahabfar12-Oct-04 10:23 
GeneralRe: double pointers deleting Pin
Cedric Moonen12-Oct-04 20:27
Cedric Moonen12-Oct-04 20:27 
Add a member function to your structure that deletes the memory allocated for the structure. But first you need to know the size of the array, so when you create your structure, maybe add also a member function that will allocate the memory for you (and store the size), so you'll be able to delete ot later.

I think also that you need maybe to revise a part of your code because this is quite heavy and this won't be very easy to debug... In general using pointers to pointers to structure that contains pointers to pointers to string, when you can avoid this, avoid it Smile | :) .

The general rule for deleting memory is: every new must have is own delete. When allocating arrays of arrays of arrays ...(doesn't matter how many dimensions), the last allocated array must be desallocated first.

Hope this helps
GeneralText and image on static control Pin
verma-rahul12-Oct-04 3:21
verma-rahul12-Oct-04 3:21 
GeneralRe: Text and image on static control Pin
Jim Crafton12-Oct-04 5:08
Jim Crafton12-Oct-04 5:08 
GeneralRe: Text and image on static control Pin
verma-rahul12-Oct-04 5:36
verma-rahul12-Oct-04 5:36 
GeneralRe: Text and image on static control Pin
RChin12-Oct-04 6:42
RChin12-Oct-04 6:42 
GeneralChoose a particular screensaver Pin
Manfred Staiger12-Oct-04 2:54
Manfred Staiger12-Oct-04 2:54 
GeneralRe: Choose a particular screensaver Pin
Anonymous12-Oct-04 5:26
Anonymous12-Oct-04 5:26 
Generalkeyboard events Pin
mahesh kumar s12-Oct-04 2:25
mahesh kumar s12-Oct-04 2:25 
GeneralRe: keyboard events Pin
Jim Crafton12-Oct-04 5:07
Jim Crafton12-Oct-04 5:07 
GeneralRe: keyboard events Pin
mahesh kumar s12-Oct-04 18:53
mahesh kumar s12-Oct-04 18:53 
QuestionHow to show our own custom Print Dialog page from Word Pin
prince1a12-Oct-04 2:22
prince1a12-Oct-04 2:22 
GeneralC# Webservice in C++ Pin
_Hacker12-Oct-04 2:07
suss_Hacker12-Oct-04 2:07 
Questionposting code? Pin
7stud12-Oct-04 0:42
7stud12-Oct-04 0:42 
AnswerRe: posting code? Pin
Neville Franks12-Oct-04 1:08
Neville Franks12-Oct-04 1:08 
GeneralVC++ Code to control and monitor processes and applications Pin
maha srikanth12-Oct-04 0:29
sussmaha srikanth12-Oct-04 0:29 
GeneralRe: VC++ Code to control and monitor processes and applications Pin
Antony M Kancidrowski12-Oct-04 4:01
Antony M Kancidrowski12-Oct-04 4:01 
GeneralRe: VC++ Code to control and monitor processes and applications Pin
sweep12312-Oct-04 4:09
sweep12312-Oct-04 4:09 
Generalcompatibility between vc++ 6.0 and vc++.net Pin
amey nikumbh11-Oct-04 23:27
amey nikumbh11-Oct-04 23:27 

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.