I wanted to build a program, which changes the active window, so I did some research and found "HWND"
. I built a small Program to test it.
void main()
{
HWND hWnd = FindWindow(NULL, L"Rechner");
SetForegroundWindow(hWnd);
}
But,I keep getting the same error.
> Fehler 1 error LNK2028: Nicht aufgel÷stes Token (0A0003AA) ""extern "C" int __stdcall SetForegroundWindow(struct HWND__ *)" (?SetForegroundWindow@@$$J14YGHPAUHWND__@@@Z)", auf das in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)" verwiesen wird
.