Original Post
Hi, I'm trying to set up force feedback. I enumerate all the devices and first get the joystick. Then I look for a force feedback device--just to see if the joystick accepts force feedback, I use GetDevices(DeviceClass.All, DeviceEnumerationFlags.ForceFeedback) to do this. Next, I create the joystick device, and create a new effect using the joystick device and the ForceFeedbackDriverGuid from the fource feedback DeviceInstance direct input found. However, when I create the effect, I get this error: SlimDX.DirectInput.DirectInputException was unhandled Message="REGDB_E_CLASSNOTREG: Class not registered (-2147221164)" Source="SlimDX" StackTrace: at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.DirectInput.Effect..ctor(Device device, Guid guid) at TDV.dxInput.dInputInitFD(Device device, Guid forceFeedbackGuid) in E:\g\projects\TDV\dxInput.cs:line 114 The joystick is created using the guid of the DeviceInstance object for the joystick--I assume I have to pass in a Joystick device to the effects constructor, and give it the force feedback driver guid of that same device. However, that error keeps being thrown. Thanks for any help you can give! Munawar