Hi,
I have started learning Win32 recently and would like to know how I can create functions in Win32 as I did in console C++. I want to execute a function with the click of a button, however, when I try to do this I get an error saying that my function is not declared or a constructor etc. is expected...
My code is:
void Function() {
}
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
Function();
// bunch of code
}
Any help would be appreciated, any site(s) covering this because I've googled a lot but haven't found things that are relevant. Unless it's me using the wrong keywords.
Kind regards
brechtjah
