Yeah I'm getting an error in Visual Studio C++ 6, here it
is:
C:\Boxed\BoxedIrcMain.cpp(225) : error
C2664: 'DialogBoxParamA' : cannot convert parameter 4
from 'long (struct HWND__ *,unsigned int,unsigned
int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned
int,unsigned int,long)'
None of the functions with this name in scope
match the target type
C:\Boxed\BoxedIrcMain.cpp(228) : error
C2664: 'DialogBoxParamA' : cannot convert parameter 4
from 'long (struct HWND__ *,unsigned int,unsigned
int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned
int,unsigned int,long)'
None of the functions with this name in scope
match the target type
Error executing cl.exe.
so any idea's on what to do, it says erorr is here in
coding:
case ID_FILE_CONNECT:
DialogBox(hInstance, MAKEINTRESOURCE
(IDD_CONNECT), hwnd, ConnectDialogProc);
break;
case ID_HELP_ABOUT:
DialogBox(hInstance, MAKEINTRESOURCE
(IDD_ABOUT), hwnd, AboutDialogProc);
break
Logged In: YES
user_id=987229
i have the same error while compiling
Logged In: NO
I am having this same error
Logged In: NO
I fixed it heres how:
on line 225 of BoxedIrcMain.cpp change this
DialogBox(hInstance, MAKEINTRESOURCE(IDD_CONNECT),
hwnd, ConnectDialogProc);
to this
DialogBox(hInstance, MAKEINTRESOURCE(IDD_CONNECT),
hwnd, (DLGPROC)ConnectDialogProc);
the same change is necessary on line 228