Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChecking if an exe file is running Pin
Member 158681215-Dec-04 0:01
Member 158681215-Dec-04 0:01 
GeneralRe: Checking if an exe file is running Pin
includeh1015-Dec-04 1:10
includeh1015-Dec-04 1:10 
GeneralRe: Checking if an exe file is running Pin
gamitech15-Dec-04 1:17
gamitech15-Dec-04 1:17 
GeneralRe: Checking if an exe file is running Pin
Member 158681215-Dec-04 2:14
Member 158681215-Dec-04 2:14 
GeneralRe: Checking if an exe file is running Pin
Blake Miller15-Dec-04 4:00
Blake Miller15-Dec-04 4:00 
GeneralRe: Checking if an exe file is running Pin
David Crow15-Dec-04 4:01
David Crow15-Dec-04 4:01 
GeneralRe: Checking if an exe file is running Pin
Member 158681215-Dec-04 21:26
Member 158681215-Dec-04 21:26 
GeneralRe: Checking if an exe file is running Pin
namaskaaram15-Dec-04 4:48
namaskaaram15-Dec-04 4:48 
Wink | ;) well..... ihad done this a different way.....

u c .....windows cannot delete a file when itz running.....use that concept.....
first make extra copies(backup) of the exe in a different location.....suppose the file that u want to check is not running,and u check this by trying to delete this file using the other running application,if success in deleteing the file then the file that u were checking was not running,else if it couldnt delete it,it meanz itz running.....now suppose it wasnt running and by checking this file if itz running or not(by trying to delete method),the file getz deleted,so now replace the backup exe to the same location.....


thatz the idea,i used in one of my programz.....

(might soung stupid.....but it workz fine).....


hope this info helpz.....

Happy programmin....

cheerz.....
Big Grin | :-D
GeneralRe: Checking if an exe file is running Pin
Antony M Kancidrowski15-Dec-04 6:05
Antony M Kancidrowski15-Dec-04 6:05 
GeneralRe: Checking if an exe file is running Pin
namaskaaram15-Dec-04 16:37
namaskaaram15-Dec-04 16:37 
GeneralRe: Checking if an exe file is running Pin
David Crow16-Dec-04 2:29
David Crow16-Dec-04 2:29 
GeneralRe: Checking if an exe file is running Pin
vishalmore15-Dec-04 17:31
vishalmore15-Dec-04 17:31 
QuestionHow to speed up creation of a window? Pin
[AMI]14-Dec-04 23:53
[AMI]14-Dec-04 23:53 
AnswerRe: How to speed up creation of a window? Pin
User 665815-Dec-04 0:55
User 665815-Dec-04 0:55 
GeneralExtracting the Points from a CRgn Object Pin
Rajesh_Parameswaran14-Dec-04 23:49
Rajesh_Parameswaran14-Dec-04 23:49 
GeneralWrite a .ini file of the application in MFC Pin
ytod14-Dec-04 23:33
ytod14-Dec-04 23:33 
GeneralRe: Write a .ini file of the application in MFC Pin
User 665815-Dec-04 0:54
User 665815-Dec-04 0:54 
Generalcolor the text in MFC Dialog Pin
ytod14-Dec-04 23:05
ytod14-Dec-04 23:05 
GeneralRe: color the text in MFC Dialog Pin
V.15-Dec-04 0:56
professionalV.15-Dec-04 0:56 
GeneralRe: color the text in MFC Dialog Pin
ytod15-Dec-04 16:12
ytod15-Dec-04 16:12 
GeneralRe: color the text in MFC Dialog Pin
David Crow15-Dec-04 4:04
David Crow15-Dec-04 4:04 
GeneralRe: color the text in MFC Dialog Pin
ytod15-Dec-04 15:33
ytod15-Dec-04 15:33 
GeneralRe: color the text in MFC Dialog Pin
David Crow16-Dec-04 4:00
David Crow16-Dec-04 4:00 
QuestionHow to add a lineat the beginnig of a file? Pin
lucia4444es14-Dec-04 22:50
lucia4444es14-Dec-04 22:50 
AnswerRe: How to add a lineat the beginnig of a file? Pin
User 665814-Dec-04 23:11
User 665814-Dec-04 23:11 

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.