Hi guys. I'm having a problem with a modal dialog box.
The procedure of the dialog is declared in GameEngine class as so :
when I call it through GameEngine class like so:
//Modal dialog box window procedure. Enables the player to select a color
//after throwing either wild or wild four
BOOL CALLBACK ColorSelector(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
DialogBox(m_AppInst, "Color Selector", m_Wnd, ColorSelector);
i get this error:
error C3867: 'GameEngine::ColorSelector': function call missing argument list; use '&GameEngine::ColorSelector' to create a pointer to member
The fourth parameter is a pointer to the dialog box procedure, isn't it??
I did what the compiler suggested: &GameEngine::ColorSelector, but i got this error:
error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'BOOL (__stdcall GameEngine::* )(HWND,UINT,WPARAM,LPARAM)' to 'DLGPROC'
any one can help ?