I am using Microsoft VC++ 5.0
I've been writing a windows app in C, recently I changed the file extension of the main project file to .cpp so I could use some handy classes I created a while ago. Everything was fine after the change except that the DialogBoxParam func will not compile (this worked fine before), the actual code in question is below along with the error.
DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_TRANSACTION), hwnd, TransactionDialogProc, NULL);
error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'int (void *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(void)'
will this conversion not work in c++? I can't imagine that I can't use a dialog box just because I am using the cpp complier