I am trying to convert my console app. to a Windows app. but I am a little bit confused as to the difference between these two lines:
The first line everything complies without errors but the second line gives the following error. (Obviously that the 4th param. is wrong but I dont understand why!)Code:BOOL CALLBACK InputProc(HWND, UINT, WPARAM, LPARAM); bool CALLBACK InputProc(HWND, UINT, WPARAM, LPARAM);
error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'bool (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__*,unsigned int,unsigned int,long)'
Why are bool and BOOL different in this example?
I am currently running MSV C on an XP pro machine.