Original Post
Ok, I've got another problem, this time regarding the use of enumerating devices. The function pointer in parameter 3 points to a member of class CDx_Input (this code exert was taken from a different function of said class) to handle the necessary enumdevice callback. For some reason, the compiler continues to reject it - despite the fact that there is no syntactical basis for the error. m_lpDI8->EnumDevicesBySemantics(NULL, &m_diAF, CDx_Input::DIEnumDevicesBySemanticsCallback, this, DIEDBSFL_ATTACHEDONLY); "c:\DarkBlade_Ent\DotS\DotS\Source\CDx_Input.cpp(100): error C2664: 'IDirectInput8W::EnumDevicesBySemantics' : cannot convert parameter 3 from 'BOOL (LPCDIDEVICEINSTANCEW,LPDIRECTINPUTDEVICE8W,DWORD,DWORD,LPVOID)' to 'LPDIENUMDEVICESBYSEMANTICSCBW'" The function declaration is: BOOL CALLBACK CDx_Input::DIEnumDevicesBySemanticsCallback(LPCDIDEVICEINSTANCEW lpddi, LPDIRECTINPUTDEVICE8W lpDevice, DWORD dwFlags, DWORD dwRemaining, LPVOID pvRef) So, why would this be a problem? Much thanks in advance. BTW: If anyone knows of a good tutorial related to default mapping keyboard and mice, that would be grand too. The ones I've found - including MSDNs, don't cover it. -HeavyBlade