It's meant to make making Windows for the API quiker and easier, but one of the problems is that in order to properly create a window with a create window function, needs to know about the Windows Procedure, but I don't know if you can properly pass a windows procedure wihtout parameters to a function in an include file. Lets say I create a Windows Procedure with typical parameters like this:
LRESULT CALLBACK(HWND, UINT, WPARAM, LPARAM);
Then how would I get the function in the include file to know about it? First part of function in include file is as follows (because it's massive, didn't want to overwhelm people). For the sake of concisity, I've only included the part I'm having trouble with, since I know the rest is error free.:
bool CreateGLWindow(char* title, char* Classname, int width, int height, int bits, bool fullscreenflag, HWND hWnd
, HINSTANCE hInstance, HGLRC hRC, HDC hDC)
{
WNDCLASS wc;
wc.lpfnWndProc = (WNDPROC)WndProc;/*"WndProc undeclared! But I can't pass it as a parameter unless I use parameters for the function, but that causes errors. Should I make all parameters for WndProc optional so I don't have to pass anything? That wouldn't work...*/
I need a way to tell the function in the header file that WinProc is the function that I want to use, and a way to pass it as a parameter without passing parameters to it. Can someone help me with this?