As I'm coming from Python some things are still new to me. Getting this strange problem and I'm starting to feel stupid because I can't solve it, even when successfully declaring my variable "hwnd" it still throws an error, quite strange, if you need more details feel free to ask.
#include <iostream>
#include <TlHelp32.h>
#include <windows.h>
class GetHandleAndBase
{
private:
HWND hwnd;
DWORD procID;
HANDLE handle;
public:
GetHandleAndBase();
~GetHandleAndBase();
// Setting the "hwnd" to a open window
hwnd = FindWindow(NULL, L"Task Manager"); // <=====Error is under hwnd
(this declaration has no storage class or type specifier)
I should probably also mention that the function
GetWindowThreadProcessId(hwnd, &procID);
slightly later on in my class is messing up with the error: Function Definition for 'GetWindowThreadProcessId' not found