Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MessageBox button caption change Pin
Shog926-Feb-04 17:49
sitebuilderShog926-Feb-04 17:49 
GeneralRe: MessageBox button caption change Pin
Paul Hooper26-Feb-04 18:32
Paul Hooper26-Feb-04 18:32 
GeneralAdd Scroll to CFormView Pin
DanYELL26-Feb-04 4:43
DanYELL26-Feb-04 4:43 
GeneralRe: Add Scroll to CFormView Pin
Prakash Nadar26-Feb-04 5:00
Prakash Nadar26-Feb-04 5:00 
GeneralRe: Add Scroll to CFormView Pin
DanYELL26-Feb-04 5:50
DanYELL26-Feb-04 5:50 
GeneralRe: Add Scroll to CFormView Pin
Prakash Nadar26-Feb-04 13:51
Prakash Nadar26-Feb-04 13:51 
GeneralMS FlexGrid Pin
TolTol26-Feb-04 4:31
TolTol26-Feb-04 4:31 
QuestionWhy does WaitForDebugEvent() fail? Pin
coomymorris26-Feb-04 4:24
coomymorris26-Feb-04 4:24 
I meet a problem and ask for your help.The following is my problem:
CPU: PII, OS: Windows98.
When any process is ready to run OS I want first to suspend it. And then I want to resume the process which has been suspended as I will. Since in the Windows98 there is no other method to realize this function except the Win32 Debug APIs method I apply them to my program. I write a small Dialog Based project using VC++. When I click a Button on the dialog I create a thread named t1 to get the current running processes in the memory. And then there is a While() loop to get the current running processes. Whenever a new process is created in the memory t1 will find it and t1 will create a new thread t2 to debug the new created process using DebugActiveProcess() function. And then WaitForDebugEvent(), ContinueDebugEvent() and so on. Here comes the problem. Sometimes t2 works well. The new process is suspended and resumed. But sometimes when a new process is starting up it is found by t1 and t1 creates a new thread t2. Then t2 suspends this new process using DebugActiveProcess() function and all these steps succeed, but WaitForDebugEvent() function fails and it returns zero and zero again in the loop. Here the new process is suspended for ever. I don't know what is the matter. It seems that t2 don't receive any debugging event occurring in the process being debugged. I don't know why. I have found that whenever this error occurs and the new process is suspended for ever there are always only 2 threads in the new process being debugged. My analysis is that one thread belongs to the new process and it is the main thread and the other thread belong to the system. Although the other thread is in this new process it is created by the system. This thread reports the debugging event occurring in the debugged process to t2, but why t2's WaitForDebugEvent() fails. This is very strange. Could you give me some suggestion and help me solve this problem. Thank you!
If I don't describe my problem clearly I could express it clearly later.
my Email:coomymorris@yahoo.com
QuestionRedirecting stderr or cout to a file? Pin
LonelyTower26-Feb-04 3:49
LonelyTower26-Feb-04 3:49 
AnswerRe: Redirecting stderr or cout to a file? Pin
Roger Allen26-Feb-04 3:54
Roger Allen26-Feb-04 3:54 
AnswerRe: Redirecting stderr or cout to a file? Pin
pfsat26-Feb-04 10:30
pfsat26-Feb-04 10:30 
AnswerRe: Redirecting stderr or cout to a file? Pin
pfsat26-Feb-04 10:31
pfsat26-Feb-04 10:31 
GeneralHELP ME!!!!! Printing page in different mode. Pin
redking7426-Feb-04 3:37
redking7426-Feb-04 3:37 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
toxcct26-Feb-04 3:44
toxcct26-Feb-04 3:44 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
redking7426-Feb-04 3:59
redking7426-Feb-04 3:59 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
toxcct26-Feb-04 4:06
toxcct26-Feb-04 4:06 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
Roger Allen26-Feb-04 3:52
Roger Allen26-Feb-04 3:52 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
redking7426-Feb-04 4:07
redking7426-Feb-04 4:07 
GeneralRe: HELP ME!!!!! Printing page in different mode. Pin
Roger Allen26-Feb-04 4:18
Roger Allen26-Feb-04 4:18 
GeneralCSocket trouble Pin
El'Cachubrey26-Feb-04 3:23
El'Cachubrey26-Feb-04 3:23 
GeneralRe: CSocket trouble Pin
Prakash Nadar26-Feb-04 4:52
Prakash Nadar26-Feb-04 4:52 
GeneralZoom in/out problem Pin
chocm26-Feb-04 2:42
chocm26-Feb-04 2:42 
GeneralRe: Zoom in/out problem Pin
chocm26-Feb-04 21:23
chocm26-Feb-04 21:23 
GeneralEmf Problem Pin
Pazzuzu26-Feb-04 2:15
Pazzuzu26-Feb-04 2:15 
GeneralRe: Emf Problem Pin
Pazzuzu26-Feb-04 3:58
Pazzuzu26-Feb-04 3:58 

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.