Главная страница | назад





Article #15895: Casting to dialogproc

 Question and Answer Database
FAQ895C.txt Casting to dialogproc
Category :Windows API
Platform :All
Product :BC++ 5.x
Question:
Why do I get "Cannot convert 'int (__stdcall *)(void *, unsigned
int, unsigned int, long)' to 'int (__stdcall *()' compile error
using a dialog?
Answer:
The error is in the dialog proc parameter of the DialogBox()
call. One solution is to make sure that STRICT is #defined.
The other is to explicitly cast to DLGPROC.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99