   Can't EnumDevices... But Why? (dinput problem)
  I'm working on a school project. I'm actually studying Mechanical Engineering but the project involves everything...  It's simply a motion simulator like those in the amusement parks except it has 6 degree of freedoms ( most commercial simulators don't go beyond 2 or 3 dofs) The hardware part is finished with all the control circuits and other crap.   The software part is almost finished but i have to implement a joystick (wheel) to my software. im using devcpp and wrote the sample codes given in programming RPG with directx by Andre LaMothe.   The error i keep getting is:-In member function `void Game::prepareInput()-no matching function for call to `IDirectInput8A::EnumDevices(DWORD, <unknown type>, void*, DWORD)-candidates are: virtual HRESULT IDirectInput8A::EnumDevices(DWORD, BOOL (*)(const DIDEVICEINSTANCEA*, void*), void*, DWORD) and the function is declared as:BOOL CALLBACK EnumJoysticks(LPCDIDEVICEINSTANCE pdInst, LPVOID pvRef)i checked the code over and over but i couldn't find the problem. so what am i missing here?? maybe i just need a pair of eyes..   