Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVisual Studio question Pin
Jason Henderson12-Oct-04 3:33
Jason Henderson12-Oct-04 3:33 
GeneralRe: Visual Studio question Pin
Jim Crafton12-Oct-04 5:05
Jim Crafton12-Oct-04 5:05 
GeneralRe: Visual Studio question Pin
Blake Miller12-Oct-04 5:05
Blake Miller12-Oct-04 5:05 
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 
struct GroupConstant
{
CString** grpConst;
};

GroupConstant** m_pGrpConst;

m_pGrpConst = new GroupConstant*[200];
for(BYTE i=0 ; i<200 ; i++)
m_pGrpConst[i] = new GroupConstant[50];

CString** pstr = new CString*[4];
for(BYTE i=0 ; i<4 ; i++)
pstr[i] = new CString[2];


GroupConstant** ppTemp = m_pGrpConst;
GroupConstant* pTemp = (*m_pGrpConst);

for(i=0 ; i<200 ; i++)
{
for(BYTE j=0 ; j<50 ; j++)
{
(*m_pGrpConst)->grpConst = pstr;
(*m_pGrpConst)++;
}
(*m_pGrpConst) = pTemp;
}
m_pGrpConst = ppTemp;


I have two double pointers. one is a content of the structure and other is pointer to the structure.
I initiate these double pointers as you see in the code. but now I have a problem with deleting these pointes.
how can I delete the double pointer included with structure and double pointer points to structur.
Thank you in advance.
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 
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 

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.