N
Noah Roberts
Question: Why is the compiler complaining about conversion from typeA to
typeA function pointers?! AFAICT that is what it is doing...
Thanks,
NR
mingw message:
Dialup.cpp: In function `void DialupChooser(HWND__*, int, char*,
stack_t**)':
Dialup.cpp:92: invalid conversion from `BOOL (*)(HWND__*, unsigned int,
unsigned int, long int)' to `BOOL (*)(HWND__*, unsigned int,
unsigned int,
long int)'
Dialup.cpp: In function `void setup(HWND__*, int, char*, stack_t**, int,
BOOL
(*)(HWND__*, unsigned int, unsigned int, long int))':
Dialup.cpp:272: invalid conversion from `BOOL (*)(HWND__*, unsigned int,
unsigned int, long int)' to `BOOL (*)(HWND__*, unsigned int,
unsigned int,
long int)'
Declaration of function:
BOOL CALLBACK dchose_proc (HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam);
Declaration of setup():
static void setup(HWND hwndParent,
int string_size,
char *variables,
stack_t **stacktop,
int dialog_resource_id,
BOOL CALLBACK (*proc)(HWND,UINT,WPARAM,LPARAM));
Call to setup (line 92):
setup(hwndParent, string_size, variables, stacktop,
ID_CHOOSE_DIALOG,dchose_proc);
Line 272 (inside setup()):
dialog = CreateDialog(hinst,
MAKEINTRESOURCE(dialog_resource_id),
parent,
proc);
typeA function pointers?! AFAICT that is what it is doing...
Thanks,
NR
mingw message:
Dialup.cpp: In function `void DialupChooser(HWND__*, int, char*,
stack_t**)':
Dialup.cpp:92: invalid conversion from `BOOL (*)(HWND__*, unsigned int,
unsigned int, long int)' to `BOOL (*)(HWND__*, unsigned int,
unsigned int,
long int)'
Dialup.cpp: In function `void setup(HWND__*, int, char*, stack_t**, int,
BOOL
(*)(HWND__*, unsigned int, unsigned int, long int))':
Dialup.cpp:272: invalid conversion from `BOOL (*)(HWND__*, unsigned int,
unsigned int, long int)' to `BOOL (*)(HWND__*, unsigned int,
unsigned int,
long int)'
Declaration of function:
BOOL CALLBACK dchose_proc (HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam);
Declaration of setup():
static void setup(HWND hwndParent,
int string_size,
char *variables,
stack_t **stacktop,
int dialog_resource_id,
BOOL CALLBACK (*proc)(HWND,UINT,WPARAM,LPARAM));
Call to setup (line 92):
setup(hwndParent, string_size, variables, stacktop,
ID_CHOOSE_DIALOG,dchose_proc);
Line 272 (inside setup()):
dialog = CreateDialog(hinst,
MAKEINTRESOURCE(dialog_resource_id),
parent,
proc);