Hi please could anyone help with any suggestions I have a line of code which comes up with an error please could someone please tell me where I am going wrong
the error which comes up is
C:\Program Files\Microsoft Visual Studio\MyProjects\BlueCar\Joystick.cpp(42) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned in
t,unsigned int,long)'
None of the functions with this name in scope match the target type
simon
Code:
DialogBox( hInst, MAKEINTRESOURCE(IDD_JOYST_IMM), NULL, MainDlgProc );
the error which comes up is
C:\Program Files\Microsoft Visual Studio\MyProjects\BlueCar\Joystick.cpp(42) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned in
t,unsigned int,long)'
None of the functions with this name in scope match the target type
simon