Try casting your pointers to void* or FARPROC