0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Well you can try it. Get the PID from Task Manager, and the terminate signal is 9, so if the PID is 1000 the call would be kill(1000,9); If that terminates the process then it works; if not then it doesn't.

The only way I can tell you if it works is to get DevC++ myself, install and test it, and since you already have it installed it's easier for you to do it.
0
vignesh1988i's Avatar
Banned
hmmmm... i too tried that alsoo.. i included all header files like : sys/types.h , signal.h , even process.h..... it's showing the error as kill() not found... first added a header file as i have referred , all are saying kill() function is present in above mentioned one of these header file .... so still am searching where this kill() function is stored in DEV C++......

so can u help me still

thank u
S.R.Vignesh
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Probably it's a linker error then if you've found it in an include file and included that file. So you need to find out which library it's in and link that with the program. On the other hand if it's a compiler error then you don't actually need to #include anything; just copy the prototype into your program.

The usual way to find out which library a function is included in is to check the documentation for that function and it will tell you. Or it could be described in the header file. If not then you'll need to hope that someone else round here knows DevC++ or ask at the DevC++ forum on SourceForge.
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
kill is unix based,there is no way it will work in windows, stop trying.


the link i send ,tells you the way it can be done in windows,so read it.

http://www.codeproject.com/KB/threads/killprocess.aspx

also check the links inside the above link.

Last edited by virxen; 22Mar2010 at 14:14..
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Every process in Windows has a process ID; open Task Manager, switch to the Processes view and make sure the PID column is enabled.
There's a kill program on MSDN. What I don't know is what it does internally; maybe it calls a system kill() library, or maybe it enumerates windows and finds process ID's (instances) from the main window.

http://technet.microsoft.com/en-us/s.../bb896683.aspx