how can i check to see if a certain program is running before the program runs?
how can i check to see if a certain program is running before the program runs?
Are you trying to check if a previous instance of your own application is running? Or do you want to check for any other application that could be running?
OS and compiler?
gg
no i just want to check if a game is running before starting the application is there any way of doing that?
Sure.
Either use FindWindow() and find its class or implement your own PID getter function. I built a set if you need them.
could you give me a bit of help
i tried this
it wont compile i got this errorCode:#include <windows.h> using namespace std; int main() { FindWindow("FarCry"); }
Code:3313 C:\Dev-Cpp\include\winuser.h too few arguments to function ` HWND__* FindWindowA(const CHAR*, const CHAR*)'