Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Determine if external application is running in MFC

Rmck87 (Programmer) (OP)
12 Jul 07 7:41
Hi, I'm programming with C++ using a dialog-based MFC application. I need to create a program with a button that when pressed, will tell me if another application is currently running. I'm not sure if there is a function to use to figure this out or not. But, I was reading something that said not to use findwindow, as it is not a very good method.

The other application is another program I wrote that will crash, but continue running somehow, so I need to write a program to run a few tests on my other program.

Thanks for the help!

One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.

ArkM (IS/IT--Management)
12 Jul 07 8:02
Try EnumProcesses then OpenProcess and EnumProcessModules Window API functions to recognize a suspicious application (see MSDN for code examples).
Rmck87 (Programmer) (OP)
19 Jul 07 7:06
Thank you, I got it figured out, those worked well!

One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close