Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAutolist member option in VStudio 6 Pin
Jerome Conus26-Feb-04 5:30
Jerome Conus26-Feb-04 5:30 
GeneralRe: Autolist member option in VStudio 6 Pin
Prakash Nadar26-Feb-04 5:43
Prakash Nadar26-Feb-04 5:43 
GeneralMultiple language Pin
Scozturk26-Feb-04 5:30
professionalScozturk26-Feb-04 5:30 
GeneralRe: Multiple language Pin
Prakash Nadar26-Feb-04 5:40
Prakash Nadar26-Feb-04 5:40 
GeneralF1 key for other thing than help! Pin
avallet26-Feb-04 5:16
avallet26-Feb-04 5:16 
GeneralRe: F1 key for other thing than help! Pin
Prakash Nadar26-Feb-04 5:27
Prakash Nadar26-Feb-04 5:27 
Generalhelp set the program back to original Pin
catngo26-Feb-04 5:09
catngo26-Feb-04 5:09 
GeneralRe: help set the program back to original Pin
Prakash Nadar26-Feb-04 5:15
Prakash Nadar26-Feb-04 5:15 
GeneralRe: help set the program back to original Pin
catngo26-Feb-04 6:12
catngo26-Feb-04 6:12 
GeneralEnd Of File (eof) test help Pin
catngo26-Feb-04 5:04
catngo26-Feb-04 5:04 
GeneralRe: End Of File (eof) test help Pin
Prakash Nadar26-Feb-04 5:12
Prakash Nadar26-Feb-04 5:12 
GeneralRe: End Of File (eof) test help Pin
catngo26-Feb-04 6:05
catngo26-Feb-04 6:05 
GeneralMessageBox button caption change Pin
misha_grewal26-Feb-04 4:51
misha_grewal26-Feb-04 4:51 
GeneralRe: MessageBox button caption change Pin
Prakash Nadar26-Feb-04 4:56
Prakash Nadar26-Feb-04 4:56 
GeneralRe: MessageBox button caption change Pin
toxcct26-Feb-04 4:57
toxcct26-Feb-04 4:57 
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 

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.