I'm having a bit of trouble getting the following code to work
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
system("TASKKILL /F /T /IM Chrome.exe");
return 0;
}
I'm getting the error LNK2019 "unresolved external symbol _WinMain@16 referenced in function "int_cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
Last edited on
you need to select «console application» as project type.
ps, ¿why don't simply make a batch file?
There is a batch file, I'm doing it this way so my anti-virus doesn't hate the .exe as much