Computing.Net > Forums > Programming > Help closing a program with c++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help closing a program with c++

Reply to Message Icon

Name: terps2005
Date: May 21, 2005 at 23:53:45 Pacific
OS: XP home?; SP2
CPU/Ram: 2.6 processor; 512 ram
Comment:

i am trying to use c++ to make a program that will close another file/program when open. i am using Dev-c++ to write it. i have no idea how to aproach this, and i havent been able to find anything on the internet help would be appreciated



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: May 23, 2005 at 14:01:10 Pacific
Reply:

find the process and kill it.

you do this using Win32 API functions such as enumeratewindows, getwindowbyname, and sendmessage

For more info:

http://msdn.microsoft.com/

They mostly come at night...mostly


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help closing a program with c++

Closing A Program With BASIC/Batch www.computing.net/answers/programming/closing-a-program-with-basicbatch/13222.html

help with c ++ www.computing.net/answers/programming/help-with-c-/4793.html

Help with C++ password program www.computing.net/answers/programming/help-with-c-password-program/20312.html