Anonymous - 2002-11-07

I have a problem.

The compiler of Dev-C++ 4.01 (and the newest too)  indicate the following error in the "generic" program in
the help file of "Win32 Programming techniques", in the section of
"The Generic Win32-based Application" from the help files of Delphi 6:

"ANSI C++ forbids implicit conversion from `void *' in argument passing"

at the fourth row of the following wrapped line of code.

DialogBox( ghInstance,
            "AboutDlg",
            hWnd,
            (DLGPROC)AboutDlgProc );
  

The AboutDlgProc is declared:

LRESULT WINAPI AboutDlgProc( HWND, UINT, WPARAM, LPARAM );

Could you explain me what is the problem with it and how can I fix it?