Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUAC and restarting an external service in my MFC app Pin
Sternocera17-Mar-10 12:45
Sternocera17-Mar-10 12:45 
AnswerRe: UAC and restarting an external service in my MFC app Pin
Mohan Ramachandra17-Mar-10 19:10
Mohan Ramachandra17-Mar-10 19:10 
AnswerRe: UAC and restarting an external service in my MFC app Pin
BIJU Manjeri17-Mar-10 19:48
BIJU Manjeri17-Mar-10 19:48 
GeneralRe: UAC and restarting an external service in my MFC app Pin
Sternocera18-Mar-10 0:13
Sternocera18-Mar-10 0:13 
Questionprevent scientific notation for integers [Solved] Pin
b-rad31117-Mar-10 10:25
b-rad31117-Mar-10 10:25 
AnswerRe: prevent scientific notation for integers Pin
Gwenio17-Mar-10 10:56
Gwenio17-Mar-10 10:56 
GeneralRe: prevent scientific notation for integers Pin
b-rad31117-Mar-10 11:00
b-rad31117-Mar-10 11:00 
QuestionDeleting a quadtree [modified] Pin
Chidori-chan17-Mar-10 9:56
Chidori-chan17-Mar-10 9:56 
Hello all, I am getting segmentation faults when I call my deleteTree function I was wondering if someone could explain why and what I am doing wrong.

Here is the snippet I am having trouble with:

qnode *
deleteTree (qnode *root)
{
  int i;

  if (root == NULL)

    return root;		// Sub-tree is empty

  /* Delete tree */
  if (root->children[i] != NULL)
    {
      for (i = 0; i < 4; i++)
	{
	  deleteTree(root->children[i]);
	  free (root->children[i]);
	  root->children[i] = NULL;
	  root->leaf;

	}
    }
}



Thank you for your time,
Chi
modified on Wednesday, March 17, 2010 4:14 PM

QuestionRe: Deleting a quadtree Pin
David Crow17-Mar-10 10:03
David Crow17-Mar-10 10:03 
AnswerRe: Deleting a quadtree Pin
krmed17-Mar-10 10:08
krmed17-Mar-10 10:08 
GeneralRe: Deleting a quadtree Pin
Chidori-chan17-Mar-10 10:17
Chidori-chan17-Mar-10 10:17 
QuestionWindows 7 compiled project does not run on Windows XP anymore Pin
Joschwenk66617-Mar-10 8:20
Joschwenk66617-Mar-10 8:20 
AnswerRe: Windows 7 compiled project does not run on Windows XP anymore Pin
Eugen Podsypalnikov17-Mar-10 9:20
Eugen Podsypalnikov17-Mar-10 9:20 
AnswerRe: Windows 7 compiled project does not run on Windows XP anymore Pin
Richard MacCutchan17-Mar-10 12:18
mveRichard MacCutchan17-Mar-10 12:18 
Questionc++ download and execute with stadistics Pin
adan-rivera17-Mar-10 7:55
adan-rivera17-Mar-10 7:55 
QuestionRe: c++ download and execute with stadistics Pin
David Crow17-Mar-10 10:05
David Crow17-Mar-10 10:05 
AnswerRe: c++ download and execute with stadistics Pin
adan-rivera17-Mar-10 12:11
adan-rivera17-Mar-10 12:11 
GeneralRe: c++ download and execute with stadistics Pin
adan-rivera17-Mar-10 12:14
adan-rivera17-Mar-10 12:14 
AnswerRe: c++ download and execute with stadistics Pin
Iain Clarke, Warrior Programmer18-Mar-10 10:47
Iain Clarke, Warrior Programmer18-Mar-10 10:47 
QuestionCan't find any examples using the Microsoft WEBDAV API Pin
Pit M.17-Mar-10 6:00
Pit M.17-Mar-10 6:00 
AnswerRe: Can't find any examples using the Microsoft WEBDAV API Pin
ShadowUz23-Jan-11 15:51
ShadowUz23-Jan-11 15:51 
QuestionHow can I put CListCtrlEx into CListView ? Pin
mesajflaviu17-Mar-10 5:33
mesajflaviu17-Mar-10 5:33 
AnswerRe: How can I put CListCtrlEx into CListView ? Pin
Eugen Podsypalnikov17-Mar-10 5:58
Eugen Podsypalnikov17-Mar-10 5:58 
GeneralRe: How can I put CListCtrlEx into CListView ? Pin
mesajflaviu17-Mar-10 6:48
mesajflaviu17-Mar-10 6:48 
GeneralRe: How can I put CListCtrlEx into CListView ? Pin
Eugen Podsypalnikov17-Mar-10 9:16
Eugen Podsypalnikov17-Mar-10 9:16 

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.