Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" [modified] Pin
sheetal_061-Feb-07 17:35
sheetal_061-Feb-07 17:35 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery2-Feb-07 5:28
Mark Salsbery2-Feb-07 5:28 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
sheetal_064-Feb-07 17:42
sheetal_064-Feb-07 17:42 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery5-Feb-07 5:09
Mark Salsbery5-Feb-07 5:09 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
sheetal_065-Feb-07 16:49
sheetal_065-Feb-07 16:49 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery6-Feb-07 7:28
Mark Salsbery6-Feb-07 7:28 
QuestionSystem::String to char* convertion Pin
Shahzeb Malik31-Jan-07 22:59
Shahzeb Malik31-Jan-07 22:59 
AnswerRe: System::String to char* convertion Pin
toxcct31-Jan-07 23:04
toxcct31-Jan-07 23:04 
Questiontruncation of folder Pin
Anilkumar K V31-Jan-07 22:40
Anilkumar K V31-Jan-07 22:40 
AnswerRe: truncation of folder Pin
Christian Graus31-Jan-07 22:49
protectorChristian Graus31-Jan-07 22:49 
GeneralRe: truncation of folder Pin
Anilkumar K V31-Jan-07 23:36
Anilkumar K V31-Jan-07 23:36 
QuestionWireless comm. through Wi Fi Pin
Member 378391131-Jan-07 22:29
Member 378391131-Jan-07 22:29 
AnswerRe: Wireless comm. through Wi Fi Pin
Christian Graus31-Jan-07 22:43
protectorChristian Graus31-Jan-07 22:43 
AnswerRe: Wireless comm. through Wi Fi Pin
Waldermort1-Feb-07 2:11
Waldermort1-Feb-07 2:11 
AnswerRe: Wireless comm. through Wi Fi Pin
Hamid_RT1-Feb-07 20:34
Hamid_RT1-Feb-07 20:34 
QuestionChild windows Pin
NorGUI31-Jan-07 22:15
NorGUI31-Jan-07 22:15 
AnswerRe: Child windows Pin
Hamid_RT1-Feb-07 0:28
Hamid_RT1-Feb-07 0:28 
GeneralRe: Child windows Pin
NorGUI1-Feb-07 0:50
NorGUI1-Feb-07 0:50 
QuestionHow to kill Parent and child processes togather Pin
dvsr31-Jan-07 22:14
dvsr31-Jan-07 22:14 
AnswerRe: How to kill Apache Pin
Roger Stoltz31-Jan-07 23:21
Roger Stoltz31-Jan-07 23:21 
If you request a process to shutdown, never mind the way to do it at this point, that process is the only one that is going to be ended. If you'd like other processes as well to be shutdown, you'd have to request them to end respectively.
Once a process is created it lives its own life independant on what process created it, i.e. if the "parent" process is killed the "child" process continues to run unless the "parent" process is designed to explicitly kill its "child" processes.

You should not use ::TerminateProcess().
You can read about the reasons here[^].
What you should do is post a WM_CLOSE message to the main thread, or window, of the process you want to kill. You can simply save the thread handle that you were given when you created the process in the PROCESS_INFORMATION argument. More info here[^].




"It's supposed to be hard, otherwise anybody could do it!" - selfquote

AnswerRe: How to kill Parent and child processes togather Pin
Hamid_RT1-Feb-07 0:27
Hamid_RT1-Feb-07 0:27 
GeneralRe: How to kill Parent and child processes togather Pin
dvsr1-Feb-07 0:33
dvsr1-Feb-07 0:33 
GeneralRe: How to kill Parent and child processes togather Pin
Hamid_RT1-Feb-07 20:42
Hamid_RT1-Feb-07 20:42 
Questioni hope this question can be asked here Pin
kalaveer31-Jan-07 21:56
kalaveer31-Jan-07 21:56 
AnswerRe: i hope this question can be asked here Pin
Don Box31-Jan-07 22:19
Don Box31-Jan-07 22:19 

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.