Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to idenitify whether process is running or not Pin
tongc16-Aug-02 3:58
tongc16-Aug-02 3:58 
AnswerRe: how to idenitify whether process is running or not Pin
Tomasz Sowinski16-Aug-02 4:04
Tomasz Sowinski16-Aug-02 4:04 
GeneralRe: how to idenitify whether process is running or not Pin
tongc16-Aug-02 6:04
tongc16-Aug-02 6:04 
GeneralRe: how to idenitify whether process is running or not Pin
Tomasz Sowinski16-Aug-02 7:04
Tomasz Sowinski16-Aug-02 7:04 
GeneralRe: how to idenitify whether process is running or not Pin
Daniel Lohmann16-Aug-02 13:10
Daniel Lohmann16-Aug-02 13:10 
GeneralRe: how to idenitify whether process is running or not Pin
tongc16-Aug-02 13:51
tongc16-Aug-02 13:51 
GeneralRe: how to idenitify whether process is running or not Pin
tongc16-Aug-02 14:57
tongc16-Aug-02 14:57 
GeneralRe: how to idenitify whether process is running or not Pin
tongc16-Aug-02 15:02
tongc16-Aug-02 15:02 
And this is the code after i've shortened it!!!

while (WaitForMultipleObjects(5, proHandle, TRUE, 1000) == WAIT_TIMEOUT)
	{
		for(i = 0; i< 5; i++)
		{
			if( WaitForSingleObject( proInfo[i].hProcess, 0 ) == WAIT_OBJECT_0 && flag[i] == true)
			{
				runningProcess--;
				flag[i] = false;
			}
		}
				
		printf(" %d ", runningProcess);		 
		
	}


Thanks for the tips Daniel (remember the pre tag) Smile | :)
GeneralDefinition of Serialization Pin
Nick Parker16-Aug-02 3:56
protectorNick Parker16-Aug-02 3:56 
GeneralRe: Definition of Serialization Pin
Tomasz Sowinski16-Aug-02 4:08
Tomasz Sowinski16-Aug-02 4:08 
GeneralRe: Definition of Serialization Pin
Nick Parker16-Aug-02 4:20
protectorNick Parker16-Aug-02 4:20 
GeneralRe: Definition of Serialization Pin
Tomasz Sowinski16-Aug-02 4:29
Tomasz Sowinski16-Aug-02 4:29 
GeneralRe: Definition of Serialization Pin
Nick Parker16-Aug-02 4:38
protectorNick Parker16-Aug-02 4:38 
GeneralRe: Definition of Serialization Pin
Tomasz Sowinski16-Aug-02 4:44
Tomasz Sowinski16-Aug-02 4:44 
GeneralRe: Definition of Serialization Pin
Nick Parker16-Aug-02 4:47
protectorNick Parker16-Aug-02 4:47 
GeneralRe: Definition of Serialization Pin
Daniel Lohmann16-Aug-02 13:34
Daniel Lohmann16-Aug-02 13:34 
Generalado clone - some questions Pin
ns16-Aug-02 3:43
ns16-Aug-02 3:43 
GeneralKeeping the values in controls when closing and opening a Dialog Pin
Luis E. Cuadrado16-Aug-02 3:40
Luis E. Cuadrado16-Aug-02 3:40 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
mishgun16-Aug-02 3:43
mishgun16-Aug-02 3:43 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
Tomasz Sowinski16-Aug-02 3:46
Tomasz Sowinski16-Aug-02 3:46 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
Luis E. Cuadrado16-Aug-02 3:51
Luis E. Cuadrado16-Aug-02 3:51 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
Tomasz Sowinski16-Aug-02 3:52
Tomasz Sowinski16-Aug-02 3:52 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
Luis E. Cuadrado16-Aug-02 3:59
Luis E. Cuadrado16-Aug-02 3:59 
GeneralRe: Keeping the values in controls when closing and opening a Dialog Pin
Tomasz Sowinski16-Aug-02 4:02
Tomasz Sowinski16-Aug-02 4:02 
GeneralI need a dll for converting emf to jpeg,png, or gif. Pin
suresh_sathya16-Aug-02 3:37
suresh_sathya16-Aug-02 3:37 

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.