Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need HELP DialogBox Function Not working!!!!!!!!!

Status
Not open for further replies.

stato10

Programmer
May 3, 2005
8
US
Code:
DialogBox( hInst, MAKEINTRESOURCE(IDD_JOYST_IMM), NULL, MainDlgProc );

for some reason this code wont compile and is doing my head in. the error I am getting 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




If anyone could help I would be very grateful

stato10
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top