I have Windows 8 and Visual Studio 2013.
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
HWND hWnd = FindWindow(0,(LPCTSTR)"Skype");
if (hWnd == 0)
{
cerr << "Cannot find window" << endl;
}
return 0;
}
The window is called "Skype" TLoginForm in Spy++ so I use the correct name but I get the error message.(Cannot find window) I know there are lot of similar questions but i didn't get answer.