I've a function declared in this way:
unsigned WINAPI searchSTR(void *j);
unsigned (*pointerF) (void*);
pointerF = &searchSTR;
"1 error C2440: '=' : cannot convert from 'unsigned int (__stdcall *)(void *)'
to 'unsigned int (__cdecl *)(void *)' ".
WINAPI macro expands to
__stdcall, which is a different calling convention from the default
__cdecl. You need to mark your function pointer with the calling convention to use:
unsigned (WINAPI *pointerF) (void*)